An ear is deployed with a WAR and EJB JAR file. The WAR contains the EJB jar file.
A class, in the WAR, needs the Session bean defined below but cannot find it with a JNDI lookup.
@Stateless(name="MyManager")
WAR based class does:
new InitialContext().lookup(name); but cannot find the session bean.
I have tried lookup with many combinations of
"java:comp/env/ejb/MyManager"
"MyManager"
"ejb/MyManager"
How can the WAR based class get a reference to the session bean?