Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

EJB lookup in a cluster environment fails to failover

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

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
ectionBase.java:470)
at com.ibm.rmi.transport.TCPTransport.getConnection(TCPTransport.java:18
0)
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
854)
at com.ibm.rmi.corba.ClientDelegate.createRequest(ClientDelegate.java:11
32)

I'm using WAS 5.1.1.1.
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.

thanks,
Vishnu
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic