0

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

pradeep cs
  • 513
  • 4
  • 9
  • 34

1 Answers1

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:

shelley
  • 7,206
  • 4
  • 36
  • 63
  • Shelly, Thank u for quick update. I am new to these concepts. As per above link, I understood JACL scripting is required to run above script. Jacl scripting where we can run? Is it in command prompt. – pradeep cs Aug 24 '11 at 19:49
  • `wsadmin` is the WAS scripting tool that can be run using either JACL or Jython. JACL is its default language, but Jython is recommended because WAS deprecated its use of JACL. `wsadmin` can be executed from `/bin/wsadmin.sh` (or `wsadmin.bat`). For initial testing, you might want to run it interactively (`/bin/wsadmin.sh -lang jython`), but you can also write wsadmin script files that contain the Jython/JACL code which can be executed (`/bin/wsadmin.sh -f yourScriptFile.py`). – shelley Aug 24 '11 at 20:06