The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 05-20-2008
swarsa swarsa is offline
Registered User
 

Join Date: May 2008
Posts: 1
Deploying EAR from UNIX command line

WebSphere has a command language implemented in jython. You can create a jython script that calls the following objects/methods:

AdminApp.install("<your ear name and path>", "[-cluster <yourCluster> -appname <your app name> -MapModulesToServers <what ever additional servers - eg web servers you want to map it to> -MapWebModToVH <vhost definition to map it to>]")

AdminConfig.save()

There are simpler versions of this command - just check on WebSphere information center (http://publib.boulder.ibm.com/infoce...v6r0/index.jsp). Then once you have the information in a file (such as myscipt.py), then you can invoke it like this:


<websphere_home>/bin/wsadmin.sh -lang jython -f <name and path of script>

Hopefully that helps. There is a lot of information on info center about scripting. Just go to the info center site and search for scripting.

steve
Reply With Quote