Friday, March 19, 2010

installing websphere or wps application using wsadmin (jacl or jython)

1.       Use scripts in websphere or process server scriptLibraries folder

/opt/ibm/WebSphere/ProcServer/scriptLibraries

2.       Use the wsadmin script with jython (python running on java) or jacl option

http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.nd.multiplatform.doc/info/ae/ae/txml_callappinstall.html or

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/topic/com.ibm.websphere.express.doc/info/exp/ae/txml_script.html

The following steps are for using jacl option and above link will show the syntax for using jython instead (for jython you have to use wsadmin.sh –lang jython and issue AdminApp.install command):

Steps:
- copy the ear file to some staging directory ex: /home/wpsadmin
- cd to profile root bin. ex: /opt/ibm/WebSphere/ProcServer/profiles/
DEV01/bin
- run wsadmin as below
./wsadmin.sh (or wsadmin.sh –lang jython or wsadmin.sh -lang jython -user wsadmin -password wsadmin)
- use the jacle script to install the app using default values (when
there is only one cell/node/server)
$AdminApp install "/home/wpsadmin/HelloWorldProcessApp.ear"  or AdminApp.install('/home/wpsadmin/HelloWorldProcessApp.ear') for jython.

for a specific server use the following
$AdminApp install "/home/wpsadmin/HelloWorldProcessApp.ear" {-node
dvlpsij01Node01 -cell dvlpsij01Node01Cell -server server1} or

AdminApp.install("/home/wpsadmin/HelloWorldProcessApp.ear" {-node
dvlpsij01Node01 -cell dvlpsij01Node01Cell -server server1}

for a specific cluster use the following
$AdminApp install "/home/wpsadmin/HelloWorldProcessApp.ear" {-cluster
clustername}

- uninstall the app from default server (assuming there is only one
server). pl note there is no .ear at the end of the app name, just the
name.
$AdminApp uninstall HelloWorldProcessApp

for a specific server use the following
$AdminApp uninstall HelloWorldProcessApp {-node dvlpsij01Node01 -cell
dvlpsij01Node01Cell -server server1}

for a specific cluster use the following
$AdminApp uninstall HelloWorldProcessApp {-cluster clustername}



This e-mail, including any attachments, may be confidential, privileged or otherwise legally protected. It is intended only for the addressee. If you received this e-mail in error or from someone who was not authorized to send it to you, do not disseminate, copy or otherwise use this e-mail or its attachments. Please notify the sender immediately by reply e-mail and delete the e-mail from your system.

Posted via email from shaker's posterous

0 comments: