1 Reply Latest reply on Jan 23, 2003 2:21 AM by Martijn Lindhout

    redeploy of a ejb that is in a ear

    Oscar Radio Pina Newbie

      Hi all,

      Is possible with jboss to redeploy a jar that is in a ear with out redeploying all the ear? I know a way of doing this that is to put all the classes that the ejb needs to work in the jar so when it is redeployed all the classes where found. If I don't put all the classes that it needs, but those classes are in other jar of the ear, it gives me a class not found exception. So the question is if I can redeploy a jar in the scope of all the classes that are in the ear with out redeploying all the ear, if I redeploy all the ear it works perfectly but my application has more than 200 jars.

      I'm using jboss 3.0.4 and 3.0.5.

      Any help will be appreciated.

      Thanks, Oscar Radio

        • 1. Re: redeploy of a ejb that is in a ear
          Martijn Lindhout Newbie


          I think this is not possible. JBoss supports the deployment of EAR's as an unpacked directory structure. If you have a file myapp.ear, you may create a directory with the same name in the 'deploy' directory (including the .ear) extension.

          This allows you to update a single file in the directory. However, the maindeployer watches the directory's 'last modified timestamp', not it's contents. So if you do a 'touch' to update the modified timestamp, the maindeployer will undeploy the whole ear and redeploy it.