I have a simple EAR packaged application and several Session beans. There resources that need to get a references so I have an old school service locator for them. It seems that WebSphere 8.5.5 does not make us of the java:module and java:app portable jndi bindings according to the spec. So.
InitialContext c = new InitialContext();
//works - but it is Websphere specific
c.lookup("ejblocal:com.MyService");
//Update to original post WORKS -
c.lookup("java:global/myAppEar/myModuleJar/MyServiceImpl!com.MyService");
//DOES NOT WORK
c.lookup("java:module/MyServiceImpl!com.MyService");
//DOES NOT WORK
c.lookup("java:module/MyServiceImpl");
MyService (plain java interface)
@Local(MyService.class)
MyServiceImpl implements MyService
Any ideas or hint? in the server logs I can see that the server is reporting that is binding the ejbs either on its ejblocal space or in java:global . I could find a related bug on Websphere 8.0 but I suppose according to their documentation, it is resolved in version 8.5.5
Thanks in advance.