[jboss-user] [EJB 3.0 Users] - EJB3 mutual-referring injection

jidehem do-not-reply at jboss.com
Wed Oct 7 06:08:17 EDT 2009


I have two Session beans which depends on each other, but could not manage to make it deploy, since injection seemed to fail.

Is EJB3 mutual-referring injection allowed ?

For example, is the following fragment of code allowed ?

  | @Local
  | interface A {
  | }
  | 
  | @Stateless
  | class BeanA{
  |     @EJB B b;
  | ...
  | }
  | 
  | @Local
  | interface B {
  | }
  | 
  | @Stateless
  | class BeanB{
  |     @EJB A a;
  | ...
  | }
  | 

Note: I use JBoss 5.1.0GA

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4259094#4259094

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



More information about the jboss-user mailing list