asadmin utility and remote deployment

Hi,

I'd like to install a web application (.war file) using the asadmin.bat utility from my windows machine.

My SJSAS is on a different Solaris machine

I have no SJSAS installed on my local PC.

Is it possible to use the asadmin for that remote deployment.

From what I've looked in the asadmin.bat script I can see that it is looking for a local installation of a SJSAS.

If not, is there any other way to deploy web application remotely (not using the admin console, but using a cmd line option - like the manager utility in Tomcat)?

Thanks in advance.

[603 byte] By [vakrat1] at [2007-11-26 7:20:46]
# 1

Yes, you can deploy to a remote host by using asadmin command:

asadmin deploy --host [your solaris machine] [your war file]

The "--host" option allows you to specify a host to deploy the application to. The default is localhost.

You could type "asadmin deploy" to see all the available options.

hongzhang at 2007-7-6 19:02:38 > top of Java-index,Application & Integration Servers,Application Servers...
# 2

Thanks for the reply.

here is the asadmin script I use. You can clearly see that it relies on the fact tha a SJSAS is installed in the local machine. Is there a way to use the asadmin utility without first installing the SJSAS?

@echo off

REM

REM Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved.

REM Use is subject to license terms.

REM

setlocal

call "C:\Sun\AppServer\config\asenv.bat"

set Path=%AS_INSTALL%\bin;%AS_ICU_LIB%;%PATH%

set JAXP_IMPL_JARS=%AS_INSTALL%\lib\dom.jar;%AS_INSTALL%\lib\xalan.jar;%AS_INSTALL% \lib\xercesImpl.jar

"%AS_JAVA%\bin\java" -Dcom.sun.aas.instanceRoot="%AS_INSTALL%" -Dcom.sun.aas.instanceName=server -Djava.library.path="%AS_INSTALL%\bin";"%AS_ICU_LIB%" -Dcom.sun.aas.configRoot="%AS_CONFIG%" -Djava.endorsed.dirs="%AS_INSTALL%\lib\endorsed" -Dcom.sun.aas.processLauncher="SE" -cp "%JAXP_IMPL_JARS%";"%AS_DERBY_INSTALL%\lib\derby.jar";"%AS_INSTALL%\lib\appserv -rt.jar";"%AS_INSTALL%\lib\appserv-ext.jar";"%AS_INSTALL%\lib\j2ee.jar";"%AS_INS TALL%\lib\admin-cli.jar";"%AS_INSTALL%\lib\appserv-admin.jar";"%AS_INSTALL%\lib\ commons-launcher.jar";"%AS_INSTALL%\lib\jaxr-impl.jar";"%AS_INSTALL%\lib\relaxng Datatype.jar";"%AS_INSTALL%\lib\xsdlib.jar";"%AS_ANT_LIB%\ant.jar";"%AS_ANT_LIB% \optional.jar";"%AS_INSTALL%\lib\install\applications\jmsra\imqjmsra.jar" com.sun.enterprise.cli.framework.CLIMain %*

endlocal

vakrat1 at 2007-7-6 19:02:38 > top of Java-index,Application & Integration Servers,Application Servers...
# 3

Yeah, I think you are right. Even the asadmin deploy command allows you to deploy to a remote host. The client side still needs to have a full installation of appserver to invoke the asadmin deploy command.

I know there is an effort to split the appserver libraries so the client side installation only needs to be a subset of a full installation. But I don't think that work is completed yet.

For now, you have to install the appserver on the client side too.

hongzhang at 2007-7-6 19:02:38 > top of Java-index,Application & Integration Servers,Application Servers...