Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1074

Circular @EJB3 references in session beans fail to deploy.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • EJB 3.1
    • AS 4.2.1.GA
    • None
    • None

      The following circular references makes the application undeployable:

      In ArchiveBrokerBean:

      @EJB
      private SeriesBrokerLocal itsSeriesBroker;

      In SeriesBrokerBean

      @EJB
      private ArchiveBrokerLocal itsArchiveBroker;

      Circular references like these work fine in Glassfish but JBoss shows the following error message:

      ObjectName: jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=ArchiveBroker,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=SeriesBroker,service=EJB3
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=ArchiveTypeBroker,service=EJB3
      persistence.units:ear=klara5.ear,jar=klara5.jar,unitName=KlaraPU
      Depends On Me:
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=ArchiveOrigBroker,service=EJB3
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=SeriesBroker,service=EJB3

      ObjectName: jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=ArchiveOrigBroker,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=ArchiveBroker,service=EJB3
      persistence.units:ear=klara5.ear,jar=klara5.jar,unitName=KlaraPU

      ObjectName: jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=SeriesBroker,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=ArchiveBroker,service=EJB3
      persistence.units:ear=klara5.ear,jar=klara5.jar,unitName=KlaraPU
      Depends On Me:
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=ArchiveBroker,service=EJB3
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=VolumeBroker,service=EJB3

      ObjectName: jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=VolumeBroker,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      jboss.j2ee:ear=klara5.ear,jar=klara5.jar,name=SeriesBroker,service=EJB3
      persistence.units:ear=klara5.ear,jar=klara5.jar,unitName=KlaraPU

              Unassigned Unassigned
              gugrim Gunnar Grim (Inactive)
              Votes:
              13 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: