Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic occurred when invoke Clustered EJB

Robert Strong
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm using BEA weblogic8.1 to develop J2EE application in a cluster environment, where EJB is clustered.

But occurred, when I call clustered Stateless session bean from a webapp outside of the cluster.

my code is below:

CatalogServiceRemote catalogServiceRemote = (CatalogServiceRemote)Locator.getSessionBean("CatalogService");
//Remote Stub is successfully acquired using ServiceLocator

this.categoryList = (ArrayList)catalogServiceRemote.getTopCategories();
//when a remote method is called, remote exception is thrown

catch(NamingException ne){
catch(RemoteException re){

exception like below:

java.rmi.RemoteException: EJB Exception: ; nested exception is:
javax.ejb.EJBException: nested exception is: javax.naming.ServiceUnavail
ableException [Root exception is]

I'm not sure why it cannot find host:, which is a host where a weblogic instance of the cluster resides. and I can ping successfully.

any help appreciated!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic