[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: How to deploy an Application on a Remote Server

PeterJ do-not-reply at jboss.com
Thu Jul 10 12:29:33 EDT 2008


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.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163663#4163663

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163663



More information about the jboss-user mailing list