WebSphere Application Server - Not able to lookup remote Stateless Session Bean in a cluster

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > September 2006 > Not able to lookup remote Stateless Session Bean in a cluster





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Not able to lookup remote Stateless Session Bean in a cluster
Rohit Gupta

2006-09-04, 7:32 am

Hi,

I am facing a problem deploying J2EE application in a clustered Websphere 5.1 Application Server.

The code we are trying to lookup is shown below & working fine with the single server.

/ ****************************************
*************************/

Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.ibm.websphere.naming.WsnInitialContextFactory");
String _strProviderURL = "corbaloc:iiop:localhost:2809";
env.put(Context.PROVIDER_URL, _strProviderURL);

context = new InitialContext(env);



// Get the object for the supplied jndi name and put it in the
// cache
PortableRemoteObject.narrow(context.lookup("INQUIRY_FACADE_JNDI"),
InquiryFacadeHome.class);

/ ****************************************
*************************/

My war is installed on Portal server & from war, I'm trying to lookup Remote Stateless Session Bean deployed on App server installed on the same machine.

The error I'm getting is :

[2006-08-30 12:43:29,116] ERROR InquiryCommand.getFacadeComponent(50) - PortalBaseException occoured :: javax.naming.NameNotFoundException: Context: HOANA01Network/nodes/HOWPS02/servers/nodeagent, name: INQUIRY_FACADE_JNDI: First component in name INQUIRY
_FACADE_JNDI not found. [Root exception is org.omg.CosNaming.NamingContextPackage.NotFound: IDL:omg.org/CosNaming/NamingContext/NotFound:1.0]

If anyone can throw some light on the above, taht'll be great help.

Regards,
Rohit



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com