• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

EJB lookup in a cluster environment fails to failover

Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm invoking a stateless session beans from a java thin client. The ejb is deployed in a cluster environment of 4 servers, 2 horizontal and 2 vertical. When any one of the servers is down, my thin client has to be restarted to work again. I changed my code to remove caching of the remote, home interface and initial context.but still it doesnt work.

I'm getting this exception:

javax.naming.NamingException: Error during resolve. Root exception is org.omg.CORBA.TRANSIENT: java.net.ConnectEx
ception: Connection refused: connect:host=host1,port=53408 vmcid: IBM
minor code: E02 completed: No
at com.ibm.CORBA.transport.TransportConnectionBase.connect(TransportConn
at com.ibm.rmi.transport.TCPTransport.getConnection(TCPTransport.java:18
at com.ibm.rmi.iiop.TransportManager.get(TransportManager.java:80)
at com.ibm.rmi.iiop.GIOPImpl.createRequest(GIOPImpl.java:132)
at com.ibm.rmi.iiop.GIOPImpl.createRequest(GIOPImpl.java:97)
at com.ibm.rmi.corba.ClientDelegate._createRequest(ClientDelegate.java:1
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:11

I'm using WAS
The Provider URL used is :corbaloc::server1:21357,:server2:21357,:server3:21457,:server4:21457

and the lookup jame used is :cell/clusters/MyCluster/ejb/EJBHome

Please help me.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!