Reputation: 2031
I have a war file and I would like to deploy it to remote machine. Both on local and remote machine glassfish 3 is installed and it would be responsible for deploying the app. How can I perform remote deploy from one machine to another? Is it possible to do it using asadmin console on one machine and deploy to the other?
Upvotes: 4
Views: 10229
Reputation: 469
In order to send ANY commands to a remote Domain Application Server (DAS) from a remote client like asadmin, you must first enable security. By default, this feature is turned off. It's simple to fix:
(1) While "on" the remote machine (2) DAS is running (3) asadmin enable-secure-admin (4) asadmin restart-domain
Now you should be able to send asadmin commands from any remote machine.
The change is permanent. Run the command once and forget it.
For help on the command run this: asadmin enable-secure-admin --help
Upvotes: 9
Reputation: 4397
asadmin deploy --user admin_user [--password admin_password]
[--host localhost] [--port 4848] [--passwordfile filename]
[--secure|-s] [--virtualservers virtual_servers]
[--type application|ejb|web|connector]
[--contextroot context_root] [--force=true]
[--precompilejsp=false]
[--verify=false] [--name component_name] [--upload=true]
[--retrieve local_dirpath] [--instance instance_name] filepath
Pay attention on --host and --port arguments. Specify needed host/port and your app will be deployed on remote GF.
Upvotes: 4