-->

How to install ear in local web sphere (automatica

2019-09-20 04:29发布

问题:

I am looking for automatic Ear deployment for WAS6 application. Is there any default scripts provided by WAS6? If Yes, Please provide me script names and please explain me, how to use that. It would be great help for me.

If there is no default scripts available to deploy ear, How to proceed to write script.

Please do needful.

Thanks in Advance

回答1:

WebSphere Application Server provides a scripting tool, wsadmin, that may be used for automating the deployment of applications. See this Info Center document for more details.

AdminApp.install('/ears/application1.ear', '[-cluster cluster1]')

Also, for more general help in writing scripts using wsadmin, here are some other helpful resources:

  • WebSphere Application Server V6.1: System Management and Configuration: Administration with Scripting (Chapter 5)

  • WebSphere Application Server V6.1 InfoCenter: Wsadmin tool