I am having trouble locating EJB 3.0 business interfaces on WebSphere Application server 8.0.0.5. When i run the dumpNamespace on the profile directory i get the classes registered on the different context than the one that com.ibm.websphere.naming.WsnInitialContextFactory is using. It seem as when i run the below code it looks for the interfaces on Context: DeveloperCell/nodes/DeveloperNode/servers/WebSphere_Portal when the dumpNameSpace locate the interfaces at (top)/nodes/DeveloperNode/servers/WebSphere_Portal/ejb/testEAR/{myejb.jar/fully-qualified interface name}
[note the content in the{} are placeholders for the real jar and the interface]
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, "iiop://localhost:10035");
Context ctx = new InitialContext(env);
Object obj = ctx.lookup(ProvinceServiceLocal.class.getName());
ProvinceServiceLocal provinceService = (ProvinceServiceLocal) PortableRemoteObject.narrow(obj, ProvinceServiceLocal.class);