Hi, I am running WebSphere 6. I am trying to do a lookup on an
EJB. My code sample:
Properties prop = new Properties();
prop.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
prop.setProperty(Context.PROVIDER_URL, "iiop://localhost:2809/");
javax.naming.InitialContext ctx = new InitialContext(prop);
Object obj = ctx.lookup("cell/nodes/localhost/servers/server1/ejb/Manager");
ManagerHome ejbHome = (ManagerHome)
PortableRemoteObject.narrow(obj,ManagerHome.class);
I get a ClassNotFoundException with 'WsnInitialContextFactory'. Because it is not in my classpath.
But where do I find the jar file that contains the 'WsnInitialContextFactory' class? What is it called, and where can I download it? Or am I supposed to use a different initial context factory class with WAS6? If so what?
Thanks in advance