Obtain option information for AdminApp object commands
Two methods...
- Use AdminApp taskinfo to obtain information for each task option with a default binding applied to the result.
- Use AdminApp installInteractive to generate the options for you. After installing the application interactively once, and specifing all the updates required, look for message WASX7278I in wsadmin.traceout.
We can cut and paste the data in this message into a script, and modify it. For example:
WASX7278I: Generated command line: install c:/websphere/appserver/installableapps/jmsample.ear {-BindJndiForEJBNonMessageBinding {{deplmtest.jar MailEJBObject deplmtest.jar,META-INF/ejb-jar.xml ejb/JMSampEJB1 }} -MapResRefToEJB {{deplmtest.jar MailEJBObject deplmtest.jar,META-INF/ejb-jar.xml mail/MailSession9 javax.mail.Session mail/DefaultMailSessionX } {"Java Mail Sample WebApp" mtcomps.war,WEB-INF/web.xml mail/MailSession9 javax.mail.Session mail/DefaultMailSessionY }} -MapWebModToVH {{"Java Mail Sample WebApp" mtcomps.war,WEB-INF/web.xml newhost }} -nopreCompileJSPs -novalidateApp -installed.ear.destination c:/mylocation -distributeApp -nouseMetaDataFromBinary}
Related tasks
Scripting and command line reference material
Related
Options for AdminApp install, installInteractive, edit, editInteractive, update, and updateInteractive commands
Commands for AdminApp