Correct, the MC injection & dependencies are done in the setup phase.
So for example if SessionBean1 wants SessionBean2 injected then SessionBean1 container is
registered as being dependant on SessionBean2 container, which will start and put
SessionBean2 in JNDI... MC starts SessionBean1 container, put SessionBean1 in JNDI, setup
JNDI env (java:comp/env/SessionBean2 -> java:global.ear/SessionBean2/local) and then
start the injection phase (java:comp/env/SessionBean2 -> SessionBean1.bean2Interface).
To summarize scope: injection framework does (EJB3) bean injection, while the container
(EJB2 + 3) work with MC for dependency injection.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994753#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...