1 Reply Latest reply on Feb 26, 2006 8:34 PM by manica

    JMX->Session Bean->Entity Bean in one Jar file... dependency

    Michael Newcomb Newbie

      MyService.java:

      @Service(...)
      class MyService
      {
       @EJB
       MySession ms;
      }

      MyStateless.java:
      @Stateless
      class MyStateless
      {
       @PersistenceUnit(...)
       EntityManager em;
      }

      MyEntity.java:
      @Entity
      class MyEntity
      {
      }
      


      Now, it starts to deploy the SessionBean first. It recognizes that it depends upon the Entity bean and states so in the log.

      Next, it tries to deploy the MBean, recognizes it depends on the SessionBean but it fails because the SessionBean is waiting on the EntityBean...

      Do I have to tell the system that my MBean depends on the entity bean as well? If so, how do I do that? If no, what am I doing wrong?

      Thanks,
      Michael