[jboss-user] [JBoss/Spring Integration] - Re: How to inject EJB into POJO
marius.bogoevici
do-not-reply at jboss.com
Tue Jul 7 00:46:40 EDT 2009
OK,
I gave it a quick try. There is a problem with scenarios which imply a circular dependency between the EJBs and the Spring Deployer.
If the Spring Bean depends on an EJB that needs to be injected with another Spring Bean from the same ApplicationContext, an initialization failure is to be expected, because the EJB cannot be initialized (can't find the ApplicationContext in JNDI, its creation is not finalized yet) which in turns causes the ApplicationContext creation to fail (EJB can't be injected in Spring bean).
However, if the Spring bean depends on an EJB that is not dependent on another Spring bean, then all should work fine.
Hope that helps,
Marius
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4242089#4242089
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4242089
More information about the jboss-user
mailing list