4 Replies Latest reply on Feb 7, 2002 9:18 AM by nickduong

    J2eeDeployer configuration?

    nickduong

      Hi all,

      I have a question regarding J2eeDeployer. I'm using JBoss 2.4.4 with Tomcat 4.01 running on Linux 2.4.10-4GB and JDK 1.3.1_02. I kept the original configuration of JBoss\catalina.

      My question is when I deploy using J2eeDeployer, the deployer seems to deploy to <Jboss_dist>\tmp\deploy\default. Thus when I restart JBoss, my applcation does not deploy. I would have to redeploy using J2eeDeployer.

      Is there a way to configure J2eeDeployer to drop my application to <JBoss_Dist>\deploy instead of <JBoss_Dist>\tmp\deploy\default?

      Thanx,
      Nick

        • 1. Re: J2eeDeployer configuration?

          I'm not sure I understand the question?

          You put your app into jboss/deploy. JBoss deploys it.

          It takes a copy into jboss/tmp to ensure the integrity
          of the archive. e.g. You change the archive while
          it is running, you don't want it loading the wrong
          version of a class.

          If you update the archive however, JBoss will undeploy
          the old archive and deploy the new one, in a different
          directory in tmp.

          If you leave the archive in jboss/deploy, the next time
          you start the server it will be redeployed.

          Do you really use \ when running linux? :-)

          Regards,
          Adrian

          • 2. Re: J2eeDeployer configuration?
            nickduong

            I'm sorry. Let me rephrase the question.

            I'm trying to deploy to a remote JBoss server running Linux. I'm looking for an alternative other than FTPing the .Ear file to <JBoss_Dist>/deploy folder (Sorry for the '\' mixup.).

            At http://remotehost:8082/ViewObjectRes//J2EE%3Aservice%3DJ2eeDeployer, I use the deploy parameter to deploy http://localhost/test.ear. The deployment goes really well, but it only seems to deploy the test.ear in the <JBoss_Dist>/tmp/deploy/Default folder. Then when I reboot the remote host, my test.ear is not deploy anymore.

            Is there a way to remotely deploy to JBoss through J2EE:Service=J2eeDeployer that retains the .Ear file after reboot?

            • 3. Re: J2eeDeployer configuration?

              There is no way to do exactly this.

              However, you can specify a remove URL in the AutoDeployer.

              In jboss.jcml change the AutoDeployer to have the
              following attribute.

              ../deploy,../deploy/lib,http://other.machine/path/myapp.ear

              The J2eeDeployer will download the ear from the location
              you specify at startup, and the AutoDeployer will watch
              it for changes. However, it won't get undeployed if the
              website goes down.

              Regards,
              Adrian

              • 4. Re: J2eeDeployer configuration?
                nickduong

                Thanx!!!