• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to tell Jacorb stop trying to connect to server

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 am going to test your electrical conductivity with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic