1 Reply Latest reply on Jul 12, 2007 6:14 AM by greg.balmer

    How to solve circular dependencies in JBoss 4.0.5GA?

      Hello all,

      I have two stateless session beans that exchange data with each other. If I were to declare EJB injection (@EJB tag) of each other in the beans, the container would complain:

      14:37:58,625 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.j2ee:jar=test.jar,name=Proc1Bean,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3
      Depends On Me:
      jboss.j2ee:jar=test.jar,name=Proc2Bean,service=EJB3

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


      Is there a way around this?

      Thanks