3 Replies Latest reply on Jul 14, 2008 12:08 PM by peterj

    How to deploy an Application on a Remote Server

    priyarao234

      Hi friends,
      I have an Application. And I have created a .ear file for that application. And now my problem is i have to deploy that application on remote server (i.e jboss is running in another machine). Please tell me how can i deploy my application on that machine.

        • 1. Re: How to deploy an Application on a Remote Server
          peterj

          Two possibilities.

          #1: Copy the ear file to that machine and then move it to the server/xxx/deploy directory. (The copy and move is important - if you just copy directly to the deploy directory, the copy might not be complete when the hot deployer runs which will cause JBossAS to attempt to deploy a partially copied file)

          #2: Invoke the deploy method of the MainDeployer mbean. Here is an example of doing this using twiddle:

          twiddle invoke "jboss.system:service=MainDeployer" deploy PATH-TO-EAR

          where PATH-TO-EAR is a URL or file path that can be used on the server running JBossAS to access your EAR file.

          Method #1 is the preferred method. Method #2 has two issues: first, the EAR must be visible to the servers; second, when you restart JBossAS, you will have to manually redeploy the EAR again.

          • 2. Re: How to deploy an Application on a Remote Server
            priyarao234

            Hi Peter,
            ThnkQ for your reply... Actually my problem is.... I have an ear file in my local machine.. and how to copy that in server/xxx/deploy directory... can u write the steps.....

            Regards,
            Prriya.

            • 3. Re: How to deploy an Application on a Remote Server
              peterj

              Um, I already gave you the steps (there are only two of them) in item #1.

              Or are you asking for steps on "copy the file to the server". For that, use ftp, a file share, an nfs mount, or whatever mechanisms the administrators on the server have provided to get the file on the server.