Defining web.xml with <ejb-local-ref> is not working in EAP6 and throws NameNotFoundException
Issue
- We have a WAR File which has the
tag defined in it's "web.xml"file.
<ejb-local-ref>
<ejb-ref-name>ejb3/SomeService/local</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>foo.SomeService</local>
</ejb-local-ref>
In Client code we are trying to lookup the local EJB as following:
SomeService svc = (SomeService) ctx.lookup("ejb3/SomeService/local");
Environment
- JBoss Enterprise Application Platform (EAP)
- 6.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.