Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy EAR file to WAS 7 from command line

I need to deploy an EAR file that is located in sever A to a WebSphere Server located in server B. I need to know how to deploy the EAR from server A to my WAS through command line. I have seared the web but found results only fro WAS 6 (i have WAS 7). does any one know how to deploy an EAR to WAS (in a different server) through command line?

like image 551
Mr T. Avatar asked Aug 03 '11 13:08

Mr T.


People also ask

Where do I deploy ear files?

To deploy the EAR file: In the side panel of the console, click Applications > New Application and then New Enterprise Application. Click Browse and navigate to the Decision Center EAR file for your version of WebSphere Application Server.

Where is the EAR file in WebSphere?

In the WebSphere Administrative Console, click Applications, New Application, New Enterprise Application. Supply the location of the WAS_caStyles. ear file.

How do you deploy ear files in liberty?

An enterprise application (ear) can be deployed to Liberty by either placing it in the dropins directory or by adding it to the server config file (server. xml), see this http://www.ibm.com/support/knowledgecenter/en/SSEQTP_8.5.5/com.ibm.websphere.wlp.doc/ae/twlp_dep.html for more details.


1 Answers

I assume both servers are standalone. If so, use WAS_HOME/bin/wsadmin on server A, and specify the RMI host/port for serverB. If not, specify the host/port of the deployment manager for serverB.

wsadmin -host serverB.host.com -port serverBRMIPortNumber -c '$AdminApp install /path/to/localfile.ear {...options...}'

Note, this is UNIX syntax; for Windows syntax, use "double quotes". Alternatively, you can omit the -c and use interactive mode, or you can use -f file.jacl. Jython scripting is available with -lang jython. See the following for AdminApp install options (e.g., -appname or -usedefaultbindings):

http://publib.boulder.ibm.com/infocenter/wasinfo/fep/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/rxml_taskoptions.html

like image 84
Brett Kail Avatar answered Sep 21 '22 13:09

Brett Kail