[jboss-dev-forums] [JBoss AS7 Development] - Re: @EJB(lookup) fails while context.lookup() is successfull

Jason Greene do-not-reply at jboss.com
Tue Oct 25 09:40:21 EDT 2011


Jason Greene [http://community.jboss.org/people/jason.greene] created the discussion

"Re: @EJB(lookup) fails while context.lookup() is successfull"

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

--------------------------------------------------------------
One thing to add is that you can get injection for simple beans by either:

   1. Using CDI in which case every class can be injected and CDI controls the lifecycle
OR
   2. Making the class a managed bean and accessing it from either JNDI or EEinjection. In this case the container is controlling the creation part of the lifecycle
--------------------------------------------------------------

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

Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111025/944ab79e/attachment.html 


More information about the jboss-dev-forums mailing list