从命令行将EAR文件部署到WAS 7 [英] Deploy EAR file to WAS 7 from command line

查看:354
本文介绍了从命令行将EAR文件部署到WAS 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将位于服务器A中的EAR文件部署到位于服务器B中的WebSphere服务器。我需要知道如何通过命令行将EAR从服务器A部署到我的WAS。我已经枯燥的网,但发现结果只有WAS 6(我有WAS 7)。
有没有人知道如何通过命令行将EAR部署到WAS(在不同的服务器中)?

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?

推荐答案

我假设两台服务器都是独立的。如果是,请在服务器A上使用WAS_HOME / bin / wsadmin,并为serverB指定RMI主机/端口。如果没有,请为serverB指定部署管理器的主机/端口。

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...}'

注意,这是UNIX语法;对于Windows语法,请使用双引号。或者,您可以省略-c并使用交互模式,也可以使用-f file.jacl。 -lython jython提供了Jython脚本。请参阅以下AdminApp安装选项(例如,-appname或-usedefaultbindings):

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

这篇关于从命令行将EAR文件部署到WAS 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆