views:

10

answers:

0

Hi ,

I am using a jacorb client to connect to a server using jacorb. I have created a file named jacorb.properties in the classpath.

it only contains the following properties :

jacorb.retries=3
jacorb.retry_interval=30000
jacorb.connection.client.pending_reply_timeout=30000
jacorb.connection.client.connect timeout=60000

i create orb like this :

Properties properties = new Properties();
  properties.put("ORBInitRef.NameService", "http://myhost..");
  org.omg.CORBA.ORB myOrb = org.omg.CORBA.ORB.init((String[]) null, properties);        NamingContextExtHelper.narrow(myOrb.resolve_initial_references("myns"));

... and hence forth so on

when the name server host myns is unreachable , the timeouts dont get applied a specified above.

how do i specify the timeouts when the host is reachable?