[jboss-user] [JBoss/Spring Integration] - Re: How to inject EJB into POJO

2009-07-07 Thread alen_ribic
marius.bogoevici wrote : Alen, | | You can try using one of the standard Spring mechanisms: | | - org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean or the jee namespace | - the @EJB annotation | | There is a sample showing the usage of the EJB annotation in

[jboss-user] [JBoss/Spring Integration] - Re: How to inject EJB into POJO

2009-07-07 Thread alen_ribic
Ok, I managed to successfuly springify my POJOs now and can confirm that jboss-spring deployer is working nicelly. Is it possible to inject Spring Beans into @Interceptors? I have Events that need to be executed after EJB business methods are called. (For Example: after createTask() business

[jboss-user] [JBoss/Spring Integration] - Re: How to inject EJB into POJO

2009-07-06 Thread marius.bogoevici
Alen, You can try using one of the standard Spring mechanisms: - org.springframework.ejb.access.LocalStatelessSessionProxyFactoryBean or the jee namespace - the @EJB annotation There is a sample showing the usage of the EJB annotation in

[jboss-user] [JBoss/Spring Integration] - Re: How to inject EJB into POJO

2009-07-06 Thread marius.bogoevici
Also, make sure that you use the context:annotation-config/ namespace element in your Spring configuration, and make sure you don't have circular dependencies ala EJB-SpringBean-EJB etc, which would make the process of creating the components pretty awkward. As a note, @Spring is a

[jboss-user] [JBoss/Spring Integration] - Re: How to inject EJB into POJO

2009-07-06 Thread marius.bogoevici
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