3 Replies Latest reply on Aug 22, 2002 5:50 AM by adrian.brock

    MBean/EJB depedency problem

    panosk

      I have a MBean that depends in a EJB Application(EAR).
      I used the following code to specify this depedency but the code doesn't work and my MBean is never started.
      I am using JBoss 3.0.1 on windows 2000 with Sun JDK 1.4.0.
      My ear is deployed and running.
      My MBean works if i manually start it through the JMX console.

      <?xml version="1.0" encoding="UTF-8"?>


      jboss.management.single:J2EEServer=Single,j2eeType=J2EEApplication,name=ecentric.ear



      Can anyone help me find out what is wrong?

        • 1. Re: MBean/EJB depedency problem

          The jsr77 mbeans are not services so you they
          do not take part in the dependency system.

          If you look in the jboss.j2ee domain, you will
          find the services for the ejb jars and individual
          ejbs that you can use in dependencies.

          Regards,
          Adrian

          • 2. Re: MBean/EJB depedency problem
            panosk

            The problem is that my ejb jar file is inside an ear and the corresponding service is 'jboss.j2ee:service=EjbModule,url=file%/C%/java/jboss-3.0.1-reporting/server/reporting/tmp/deploy/server/reporting/deploy/ecentric.ear/43.ecentric.ear-contents/ecentric-ejbs.jar' in jboss3.0.1.
            So there is no standard way to deploy my service mbean.

            Regards, Panos

            • 3. Re: MBean/EJB depedency problem

              Can't you depend on the individual bean you
              invoke jboss.j2ee:service=EJB,jndiName=...

              The usage of the tmp url is probably a bug
              introduced in 3.0.1 because the njar protocol has
              been dropped.

              Regards,
              Adrian