[jboss-user] [Beginner's Corner] - Re: Resolution should not happen via injection container-jboss 5 for ejb3

Akshay Sahu do-not-reply at jboss.com
Fri Apr 22 02:11:49 EDT 2011


Akshay Sahu [http://community.jboss.org/people/akshaysahu] created the discussion

"Re: Resolution should not happen via injection container-jboss 5 for ejb3"

To view the discussion, visit: http://community.jboss.org/message/601578#601578

--------------------------------------------------------------
Readers,
Please follow the below steps to overcome the exception.


          1. Deploy your ejb-jar and war file via an *EAR* file. I mean, do not deploy your ejb-jar and war file as separate entities. Package them as an EAR file and then deploy it.
          2. During injection at the servlet, when you're using the *@EJB annotation*, just use the *mappedName* attribute of it. The *mappedName* attribute should contain the *JNDI* name of the EJB.


Thank You,
*Akshay Sahu (OCBCD 5)*
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/601578#601578]

Start a new discussion in Beginner's Corner at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110422/5eb9ea9a/attachment-0001.html 


More information about the jboss-user mailing list