2 Replies Latest reply on Dec 16, 2004 2:03 AM by wxwang

    T3services in Jboss

    wxwang

      I am carrying out a project to migrate a application from Weblogic to Jboss Server.

      I have got some code using T3StartupDef and T3ShutdownDef services supported by Weblogic.

      Does anybody can tell me whether Jboss have got any similar interfaces or APIs?

      Thanks

        • 1. Re: T3services in Jboss

          Hi, we did this conversion and used MBeans instead of the weblogic startup classes. We basically had the following under weblogic:

          public class A implements T3StartupDef


          We converted this to:

          public interface A extends ServiceMBean


          which implements the required methods and

          public class B extends ServiceMBeanSupport implements A


          which contains the actual implementation. These classes were all compiled and jarred up along with a META-INF/jboss-service.xml as "custom-startup-service.sar". This file was then placed in the deploy directory.

          Hope this helps gets you started. If you are not familiar with writing MBeans, you could read about them in the JBoss Admin Development Guide (see section 2.4.3 in the Jboss 3.2.6 guide).

          • 2. Re: T3services in Jboss
            wxwang

            I implemented in by using JMX MBean

            Thank you very much.

            I have got an other question so far.

            Can I Shutdown Jboss. When the Server is failure of Deployment my MBean?

            I tried calling org.jboss.Shutdown, but it need to visit shutdown.jar in bin directory.

            But I cannot put the shutdown.jar into ClassPath, which will lead to another exception at doing startup process.