Shayan Shah wrote:
Can we inject an ejb to a servlet given that the ejb module and web module are not packaged in an EAR but deployed in same container instance?? I am facing problems in this kind of situation.
I wonder if this is even supported or not? I am using JB0SS 5.1.
In
JBoss AS, if you are deploying them as separate applications, you can get it injected using the mappedName attribute:
Without the mappedName, it's not yet supported
https://jira.jboss.org/jira/browse/JBAS-6332