-
1. Re: How to deploy an Application on a Remote Server
peterj Jul 10, 2008 12:29 PM (in response to priyarao234)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 Jul 14, 2008 8:38 AM (in response to 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 Jul 14, 2008 12:08 PM (in response to priyarao234)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.