2 Replies Latest reply on Sep 5, 2002 9:52 PM by David Jencks

    Hot Deployment of Mbeans

    Ryan Cuprak Newbie

      I am trying to do hot deployment of mbeans at runtime- deploying and then undeploying. However, after I have 'deployed' the mbeans don't appear in the jmx-console and when I un-deploy I get the following error message (if I go to the location and try deleting the file I get a sharing violation):

      10:08:40,562 INFO [MainDeployer] could not delete directory file:/C:/server/jboss-3.0.2/server/default/tmp/deploy/server/default/deploy/AtlantisMBean
      s.jar/60.AtlantisMBeans.jar restart will delete it

      Here are the ant tasks:

      <!-- Deploy the mbean -->

      <!-- Copy over the deployment descriptor -->

      Any suggestions?

        • 1. Re: Hot Deployment of Mbeans
          Adrian Brock Master

          First problem - deployment.
          What does your deployment descriptor look like?

          Second problem - sharing violation
          This is a known problem with windows and the jdk's jar
          file entry caching.


          • 2. Re: Hot Deployment of Mbeans
            David Jencks Master

            it looks to me as if you are deploying your package twice: once throught the ant jmx task, and then again by copying it into the jboss deploy directory and waiting for the autodeployer. This is apt to have somewhat unfortunate results, although I'm somewhat surprised that _all_ the mbeans don't appear. Personally I like to use the ant jmx task to deploy stuff during development since it doesn't clutter up the jboss deploy dir and if I restart the server I have a clean slate.