hi,
Yes, it is very much possible to deploy an application remotely to the Sun Appserver. All you need to do is login to the Admin Console (thru' the browser) from your remote machine where your war or ear file resides. Then Click on Common Tasks and it will guide you through the deployment process.
On the deployment page, there are two options :
1. Specify a package file to upload to the Application Server.
This is what you need
2. Specify a package file or a directory path that must be accessible from the server.
Use this option if you know the location of the ear/war file on the machine where the appserver is installed.
Hope this helps.
Cheers,
Vasanth
This is also possible. You will need to install one of the below on machine A where your war/ear file resides.
1. Complete Application Server installation (I don't think you want to do this)
2. Application Server Administration Client梐sadmin utility.
http://docs.sun.com/app/docs/doc/819-2649/6n4u3fd31?a=view#abnav
You can then use the asadmin deploy --host --port command to deploy your application. Type asadmin deploy --help for the complete syntax.
Cheers,
Hi,
This is Naveen. Can this remote deployment be done through ant . using scp tag.
I tried doing this but i got a connection refused error.
This is the code
<target name="deploy" depends="package">
<scp file="${output}/war/${appname}.war" todir="asia/bgh08599@BGHWF5382:/C$" password="PassWord3"/>
</target>
error
deploy:
[scp] Connecting to BGHWF5382:22
BUILD FAILED
D:\eclipse\workspace\ServletDemo\build.xml:110: com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused: connect
Total time: 4 seconds
pls let me know how should i go about it..
thanx in advance