#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.
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.....
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.