This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Distributed Java and the fly likes How to tell Jacorb stop trying to connect to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "How to tell Jacorb stop trying to connect to server" Watch "How to tell Jacorb stop trying to connect to server" New topic
Author

How to tell Jacorb stop trying to connect to server

Derek Wildstar
Greenhorn

Joined: May 11, 2010
Posts: 1
Hi Guys,

I'm running into some (probably easy to resolve) with Jacorb...
I've created a small JCA source adapter that is connecting to a server and then resolving object and making operation and this is working.

To establish the initial connection I'm using an IP address but when I'm trying to narrow the naming context the server is replying back with a domain name like corbaserver.mysite.com and this is not resolvable on some machine (lack of hosts configuration).
This is resulting into:

2010-05-11 12:06:21,921 TRACE [com.vitria.ps.corba.np.source.NPFOSCorbaSourceConnectorLogger] -----> [Narrow NamingContextExt]
2010-05-11 12:06:21,937 ERROR [STDERR] 2010-05-11 12:06:21.937 INFO ClientConnectionManager: created new ClientGIOPConnection to 10.10.10.19:10005 (1882876)
2010-05-11 12:06:21,968 ERROR [STDERR] 2010-05-11 12:06:21.968 INFO Connected to 10.10.10.19:10005 from local port 1359
2010-05-11 12:06:22,000 ERROR [STDERR] 2010-05-11 12:06:22.000 WARNING init_host, corbaserver.mysite.com unresolvable

So based on the configuration is retrying 5 times with a delay of 500 ms.
How can I tell Jacorb to stop after trying 5 time and raise an exception that I could catch instead of opening a new connection and retrying again forever?

Regards Derek
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to tell Jacorb stop trying to connect to server