[jboss-dev-forums] [Design of EJB 3.0] - Re: Injection Framework

wolfc do-not-reply at jboss.com
Mon Dec 18 13:17:33 EST 2006


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#3994753

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994753



More information about the jboss-dev-forums mailing list