3 Replies Latest reply on Aug 30, 2011 12:22 PM by jaikiran

    AS7 - ServiceMBean question

    lmcdasi

      Hi,

       

         What would be the 'porting' path of an AS5 application that implements a service via ServiceMBean towards AS7 ?

       

         I am trying several things and none seem to kickstart .....

       

      BR,

      Dan S.

        • 1. Re: AS7 - ServiceMBean question
          johnbailey

          Dan-

           

          We have discussed the possibility of adding the legacy ServiceMBeanSupport and associated classes over, but have not put forth the necessary work yet.   We will put something in place to at least help bridge the gap with the 7.1 release.

           

          What are you using from the base class?  In most cases just removing the dependency on the base class works.  We will call the correct methods as expected, we just don't have a base class to extend.

          • 2. Re: AS7 - ServiceMBean question
            lmcdasi

            Hi John,

             

               Ok. We do have an app that is suppose to start some services and in other application servers we do use the lifecycle mechanism. One way in AS5 was to use the ServiceMbeanSupport in order to kickstart that services.

             

            BR,

            Dan S.

            • 3. Re: AS7 - ServiceMBean question
              jaikiran

              If your application is a EJB app, then you can include a @javax.ejb.Startup @javax.ejb.Singleton bean which is triggered on application deployment. You can do any initialization stuff in the @PostConstruct method of that bean.