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&...]