0 Replies Latest reply on Oct 5, 2012 1:27 AM by bsudhananthan

    Find Deployment status jboss 7

    bsudhananthan

      Can any one tell how to get deployment status programatically(whether deployment is success/failed).

       

      I'm using below logic to obtain the same inside Service MBean.

       

                    MBeanServer server = MBeanServerLocator.locateJBoss();

                     ObjectName objName3 = new ObjectName("jboss.as:deployment=my.ear");

                     deploymentStatus = server.getAttribute(objName3, "status").toString();

       

      My SAR is under my.ear. Writing the above logic inside service MBean is of no good, since at that time deployment of my.ear is under progress . So i made the Thread to sleep for some 10 to 20 sec for deployment to get finish.

       

      So please give me a  better solution to get deployment status in an efficient manner.

       

      Thanks,

      Sudhananthan B.