1 Reply Latest reply on Feb 12, 2003 10:52 PM by Adrian Brock

    steps for creating a SUCCESFULL Mbean

    Rajiv Newbie

      can some one list this ?
      or point me to a URL or an already doen example ?
      this is for JBosss 3.0

      I am getting confused
      I want to write a MBean which would serve as my startup class

      Do i put an entry for this bean in jboss-service.xml under server\default\conf ? or do i create a seperate .sar file - if i do that - how do i make it a startup class ?


      side note : is jboss more complex to handle than weblogic ????

        • 1. Re: steps for creating a SUCCESFULL Mbean
          Adrian Brock Master

          You can create a sar in server/default/deploy

          mysar.sar/
          mysar.sar/META-INF/jboss-service.xml
          mysar.sar/org/whatever/MyStartup.class
          mysar.sar/org/whatever/MyStartupMBean.class

          or just add a

          mystartup-service.xml to deploy if the classes are
          elsewhere.

          putting the mbean in jboss-service.xml means it
          won't hot-deploy

          Regards,
          Adrian