3 Replies Latest reply on Mar 24, 2010 2:44 AM by duane

    disable applications' deployment and undeploymen on JBoss's startup and shutdown

    duane

      Hi,

       

      Is that possible to disable applications' deployment and undeployment on JBoss' startup and shutdown?

       

      Our applications work in this way: applications have their configuration data in their .ear files, and on applications' deployment the configuration data will be migrated into a central configuration store on a LDAP server.

       

      On WebLogic/WebSphere, after the application's deployment, we can modify the configuration of the application through a management console. And  if I reboot the server, the changes to the configuration won't be lost.

       

      However on JBoss, on server's reboot, the application will be undeployed and deployed again, and the changes to the configuration though the management console are lost.

       

      So we want to disable applications' deployment and undeployment on JBoss' startup and shutdown.

       

      Thanks for your help!

       

      Duane

        • 1. Re: disable applications' deployment and undeploymen on JBoss's startup and shutdown
          jaikiran

          Duane Yang wrote:

           


           

          we can modify the configuration of the application through a management console. And  if I reboot the server, the changes to the configuration won't be lost.

           

          However on JBoss, on server's reboot, the application will be undeployed and deployed again, and the changes to the configuration though the management console are lost.

           

          Is that some custom management console? If yes, can you provide the details about where it stores those changed configurations? And is your application deployed as an archive or in exploded (folder) format? And which version of JBoss AS are you using?

          • 2. Re: disable applications' deployment and undeploymen on JBoss's startup and shutdown
            duane

            Jaikiran,

             

            Thanks for your help. The console is the Oracle Enterprise Manager. The configurations are stored in a LDAP server. We have application authorization policies (in a file named jazn-data.xml) packaged in our applications. The application policies will be migrated to the central policy store (on the LDAP server) on deployment and removed from the central policy store on undeployment. We created a custom deployer, which extends org.jboss.deployers.spi.deployer.helpers.AbstractDeployer and implements its deploy and undeploy methods, so that application policy can be migrated to the central policy store on deployment and be cleaned from the centrol policy store on undeployment. Our problem can also be resolved if AbstractDeployer can distinguish between normal deployment/undeployment and deployment/undeployment on JBoss' startup/shutdown. Is that possible?

             

            Our apps are usually deployed as archives but can also be deployed in exploded format. We are using jboss-5.1.0.GA.

            • 3. Re: disable applications' deployment and undeploymen on JBoss's startup and shutdown
              duane

              Is that possible to detect whether current status of JBoss is "starting up"/"shuting down"?