2 Replies Latest reply on Jan 5, 2011 2:21 PM by krudorf

    hot redeploy ejb-jar inside exploded ear

    rafaelri

      Hi all,

       

      Is there any trick for triggering a hot redeploy of an ejb-jar module inside an exploded ear?

      I have tried to setup a simple Eclipse project with an ant builder configured so every time my modules changed it would get copied to the exploded ear directory (obviously under jboss deploy directory). Unfortunately I could only make it work by redeploying the whole application (either by touching the folder or the application.xml).

      Is there anyway I can redeploy the single changed EJB module? I tried touching the ejb-jar folder but with no success. Only as a remark I am using EJB3 so by now I still have no deployment descriptors (not even jboss proprietary ones). That's the next step I am taking, trying to provide jboss.xml and seeing if touching this triggers the redeployment of the module.

       

      regards,

      Rafael Ribeiro

        • 1. Re: hot redeploy ejb-jar inside exploded ear
          vickyk

          No you can't trigger the hot deployment of the individual module in EAR by touching the deployment descriptor, why would you need to do so?

          I guess you would like to save time in deployment, the entire EAR would be taking much time to redeploy, am I right?

          You may play with the corresponding MBeans, it may allow you to deploy/undeploy individual ejb's.

          You could also have take the ejb deployment artifact out of the EAR and keep them use the same classloading, this can be achieved by scoping the EAR and seperate EJB deployments.

          • 2. Re: hot redeploy ejb-jar inside exploded ear
            krudorf

            Can you explain the scoping the EAR and seperate EJB deployments?

             

            Should I deploy the EJB jars as seperate parts, then how will they find each others classes and jars?