Home > general > How to deploy an Application on a Remote Server

How to deploy an Application on a Remote Server

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

Advertisements
Categories: general Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: