2 Replies Latest reply on Aug 23, 2005 4:03 AM by jcoffee

    Post EAR-deploy / pre EAR-undeploy activities

    jcoffee

      Hi, let's try it in the beginners corner once more because with other application servers this is a very basic thing: I need to invoke some activity as soon as my EAR is completely deployed and to invoke some other just before my EAR gets undeployed. I studied the forums and meanwhile three rather expensive books on JBoss. But I still have no solution for the undeploy-issue. My notification handler gets a notification after the EAR is deployed, but there seems to be no way to get such an notification before undeploy. I cannot believe that JBoss does not provide such a feature.

      (JBoss 3.2.6, WinXP)

        • 1. Re: Post EAR-deploy / pre EAR-undeploy activities
          genman


          http://www.google.com/search?q=notification+jboss+deployment

          Well, JBoss uses services (MBeans) and deployment ordering. Deployers also emit notification (via JMX) when a service is added or removed.

          Maybe you should buy one of those expensive books if the google.com is too complicated?

          • 2. Re: Post EAR-deploy / pre EAR-undeploy activities
            jcoffee

            Sorry, I didn't want to be sarcastic. I'm just a bit lost: Your query points me directly to the Wiki page ReceiveJMXDeploymentNotifications. That's where I started a couple of days before. I deploy a JMX based NotificationListener in an SAR registering with the EARDeployer. And it works fine for deployment. But on undeployment, I receive the notification too late. My EJBs are already undeployed at that time. However, I need to perform some pre-undeploy actions with by EJBs still active. This excactly is the problem. And even in the books - I bought all the three of them - I cannot find a hint how to make it.