[jboss-user] [EJB 3.0] Crossreferencing EJBs

Christian Nolte ch.nolte at noltec.org
Wed Dec 12 07:50:15 EST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi!

I have two stateless session beans which are referencing each other like
that:

@Stateless
public class SessionBeanA implements SessionBeanALocal {

	@EJB private SessionBeanB sessionB;

}

and

@Stateless
public class SessionBeanB implement SessionBeanBLocal {

	@EJB private SessionBeanA sessionA;

}

When deploying the application I get

- --- MBeans waiting for other MBeans ---
ObjectName: jboss.j2ee:jar=test.jar,name=SessionBeanA,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    jboss.j2ee:jar=test.jar,name=SessionBeanB,service=EJB3
    persistence.units:jar=test.jar,unitName=test.jar
  Depends On Me:
    jboss.j2ee:jar=test.jar,name=SessionBeanB,service=EJB3

ObjectName: jboss.j2ee:jar=test.jar,name=SessionBeanB,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    jboss.j2ee:jar=test.jar,name=SessionBeanA,service=EJB3
  Depends On Me:
    jboss.j2ee:jar=test.jar,name=SessionBeanA,service=EJB3

So both session beans are referencing each other and a deployment is
therefore not possible. How can this situation be resolved?

Best regards!
Christian

- --
For more than 4 generations the IT Professionals were the guardians
of quality and stability in software. Before the dark times.
Before Microsoft...

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHX9kHCNjA0nfhW7wRAoYYAKD98WjZWfdCyWg9rm4jzGsRe1DUZgCg+WnP
WQ+6Rp3E3huzf5U511z0EaQ=
=RJPT
-----END PGP SIGNATURE-----



More information about the jboss-user mailing list