6 Replies Latest reply on Sep 10, 2002 6:30 PM by cepage

    MBeans in 3.02

    aweissman

      I'm looking for the place to put my MBeans that were in a .jar in /lib/ext under my old jboss. Where do they go in 3.02?

      Thanks!
      Al

        • 1. Re: MBeans in 3.02
          sgturner

          <server_name>/deploy

          • 2. Re: MBeans in 3.02
            aweissman

            ok thanks that makes sense. i've also added my mbean entry to the bottom of the jboss-service.xml. i'm now getting several exceptions.

            i think what is happening is that it parses mbean entry before it has loaded the .jar that contains my mbeans (I get a deploymentException and it says that my service is not registered). I am pretty sure that I have configured my mbean correctly because if I force jboss to reload its configuration (by saving jboss-service.xml while jboss is running) my mbean executes correctly.

            any ideas?

            Thanks!
            Alan

            • 3. Re: MBeans in 3.02
              sgturner

              Your intuition is correct. Two ways to solve problem:

              1. add a depends attribute in the xml file.
              2. create a .sar file containing just your jar file and deployment descriptor.

              For both, see QuickStartGuide for info. See JBoss newsletters on my site for example code and sar files. Or unzip any of the existing .sar files in deploy directory to see layout of file.

              • 4. Re: MBeans in 3.02
                aweissman

                thanks so much sgturner. i got through and discovered the quickstart guide also! whats your site url?

                peace
                al

                • 5. Re: MBeans in 3.02
                  sgturner

                  click on my user name to left of this message

                  • 6. Re: MBeans in 3.02
                    cepage

                    In my opinion, it is easier just to use the PrefixNumberDeploymentSorter that is available in 3.0.2.

                    Uncomment the appropriate part of your ${server}/conf/jboss-service.xml file to enable the PrefixNumberDeploymentSorter.

                    Then just rename your files. For example, 10-myMBean.jar and 20-myService.xml. JBoss will now deploy your files in the correct order.