-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
18.0.1.Final
-
None
-
---
-
---
A stateless EJB is deployed within an application (let's call it app A), server logs are as follows:
java:global/app/core-ejb/UserServiceBean!mypackage.UserService java:app/core-ejb/UserServiceBean!mypackage.UserService java:module/UserServiceBean!mypackage.UserService java:jboss/exported/app/core-ejb/UserServiceBean!mypackage.UserService ejb:app/core-ejb/UserServiceBean!mypackage.UserService java:global/app/core-ejb/UserServiceBean java:app/core-ejb/UserServiceBean java:module/UserServiceBean
This bean is tried to be looked up from a different application (let's call it app B) deployed on the same server.
It is looked up using the ejb namespace: ejb:app/core-ejb/UserServiceBean!mypackage.UserService
This JNDI url is correct but we got this error: javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for \"app/core-ejb/UserServiceBean\", view is interface mypackage.UserService, affinity is None.
To be mentioned that the client code is called within a @PostConstruct method of a Singleton, Startup EJB in app B.
App B is started after app A (app A is declared as deployment dependency of app B in jboss-all.xml).
JNDI look up works well with java:global namespace, but ejb namespace was also expected to work in this case.