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