WAS v8.5 > Reference > Commands (wsadmin scripting)Options for the AdminApp object install, installInteractive, edit, editInteractive, update, and updateInteractive commands using wsadmin.sh
We can use the commands for the AdminApp object to manage application configurations.
We can set a configuration value using options in batch mode. To identify which configuration object is to be set or updated, the values of read only fields are used to find the corresponding configuration object.
If an application is running, changing an application setting causes the application to restart. On stand-alone servers, the application restarts after you save the change. On multiple-server products, the application restarts after you save the change, and files synchronize on the node where the application is installed. To control when synchronization occurs on multiple-server products, deselect Synchronize changes with nodes on the Console preferences page.
ActSpecJNDI
Bind Java 2 Connector (J2C) activation specifications to destination JNDI names.
We can assign a value to each of the following elements of the ActSpecJNDI option:
- RARModule
- uri
- j2cid
- j2c.jndiName
The contents of the option after running default bindings include:
RARModule <rar module name> uri <rar name>,META-INF/ra.xml Object identifier <messageListenerType> JNDI name null To use this option...
- Specify the Destination property in ra.xml
- Set the introspected type of the Destination property as javax.jms.Destination
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install $embeddedEar {-ActSpecJNDI {{"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.jms.MessageListener jndi5} {"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.jms.MessageListener2 jndi6}}}
Jacl with pattern matching:
$AdminApp install $embeddedEar {-ActSpecJNDI {{.* .*.rar,.* javax.jms.MessageListener jndi5} {.* .*.rar,.* javax.jms.MessageListener2 jndi6}}}
Jython:
AdminApp.install(embeddedEar, ['-ActSpecJNDI', [["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'javax.jms.MessageListener', 'jndi5'], ["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'javax.jms.MessageListener2', 'jndi6']]])
Jython with pattern matching:
AdminApp.install(embeddedEar, ['-ActSpecJNDI', [['.*', '.*.rar,.*', 'javax.jms.MessageListener', 'jndi5'], ['.*', '.*.rar,.*', 'javax.jms.MessageListener2', 'jndi6']]])
allowDispatchRemoteInclude
Enable an enterprise application to dispatch includes to resources across web modules that are in different Java virtual machines in a managed node environment through the standard request dispatcher mechanism.
Jacl:
set deployments [$AdminConfig getid /Deployment:RRDEnabledAppname/]
set deploymentObject [$AdminConfig showAttribute $deployments deployedObject]
set rrdAttr [list allowDispatchRemoteInclude true]
set attrs [list $rrdLocalAttr]
$AdminConfig modify $deploymentObject $attrsJython:
deployments = AdminConfig.getid ('/Deployment:RRDEnabledAppname/')
deploymentObject = AdminConfig.showAttribute (deployments, 'deployedObject')
rrdAttr = ['allowDispatchRemoteInclude', 'true']
attrs = [rrdLocalAttr]
AdminConfig.modify (deploymentObject, attrs)allowPermInFilterPolicy
Application server should continue with the application deployment process even when the application contains policy permissions that are in the filter policy. This option does not require a value.
allowServiceRemoteInclude
Set true to service include requests.
Jacl:
set deployments [$AdminConfig getid /Deployment:RRDEnabledAppname/]
set deploymentObject [$AdminConfig showAttribute $deployments deployedObject]
set rrdAttr [list allowServiceRemoteInclude true]
set attrs [list $rrdAttr]
$AdminConfig modify $deploymentObject $attrsJython:
deployments = AdminConfig.getid ('/Deployment:RRDEnabledAppname/')
deploymentObject = AdminConfig.showAttribute ('deployments', 'deployedObject')
rrdAttr = ['allowServiceRemoteInclude', 'true'] attrs = [rrdAttr]
AdminConfig.modify (deploymentObject, attrs)appname
Name of the application. Default is the display name of the application.
BackendIdSelection
Backend ID for the enterprise bean JAR modules that have container-managed persistence beans. An enterprise bean JAR module can support multiple backend configurations as specified using an application assembly tool. Use this option to change the backend ID during installation.
Jacl:
$AdminApp install myapp.ear {-BackendIdSelection {{Annuity20EJB Annuity20EJB.jar,META-INF/ejb-jar.xml DB2UDBNT_V72_1}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-BackendIdSelection {{.* Annuity20EJB.jar,.* DB2UDBNT_V72_1}}}
Jython:
AdminApp.install('myapp.ear', '[-BackendIdSelection [[Annuity20EJB Annuity20EJB.jar,META-INF/ejb-jar.xml DB2UDBNT_V72_1]]]')
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-BackendIdSelection', [['.*', 'Annuity20EJB.jar,.*', 'DB2UDBNT_V72_1']]])
BindJndiForEJBBusiness
Bind EJB modules with business interfaces to JNDI names. Ensure that each EJB module with business interfaces is bound to a JNDI name.
The current contents of the option after running default bindings include:
- EJBModule: SampleModule
- EJB: SampleEJB
- URI: sample.jar,META-INF/ejb-jar.xml
- Business interface: com.ibm.sample.business.bnd.LocalTargetOne
- JNDI name: []: ejblocal:ejb/LocalTargetOne
If we specify the target resource JNDI name using the BindJndiForEJBNonMessageBinding option, do not specify a business interface JNDI name in the BindJndiForEJBBusiness option. If we do not specify the target resource JNDI name, specify a business interface JNDI name. If we do not specify a business interface JNDI name, the run time provides a container default.
For a no-interface view, the business interface value is an empty string ("").
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are either missing information, or requiring an update.
Batch mode example usage
Jacl:
$AdminApp install $ear {-BindJndiForEJBBusiness {{ ejb1.jar ejb1 ejb1.jar,META-INF/ejb-jar.xml test.ejb1 jndi1 }}}
Jacl with pattern matching:
$AdminApp install $ear {-BindJndiForEJBBusiness {{ .* .* .*.jar,.* test.ejb1 jndi1 }}}
Jython:
AdminApp.install(ear, '[-BindJndiForEJBBusiness [[ejb1.jar ejb1 ejb1.jar,META-INF/ejb-jar.xml test.ejb1 jndi1 ]]]')
Jython with pattern matching:
AdminApp.install(ear, '[-BindJndiForEJBBusiness [[.* .* .*.jar,.* test.ejb1 jndi1]]]')
BindJndiForEJBMessageBinding
Bind message-driven enterprise beans to listener port names or to activation specification JNDI names. Use this option to provide missing data or update a task. When a message-driven enterprise bean is bound to an activation specification JNDI name, we can also specify the destination JNDI name and authentication alias.
Each element of the BindJndiForEJBMessageBinding option consists of the following fields: EJBModule, EJB, uri, listenerPort, JNDI, jndi.dest, and actspec.auth. Some of these fields can be assigned values: listenerPort, JNDI, jndi.dest, and actspec.auth.
The current contents of the option after running default bindings include:
- EJBModule: Ejb1
- EJB: MessageBean
- URI: ejb-jar-ic.jar,META-INF/ejb-jar.xml
- Listener port: [null]:
- JNDI name: [eis/MessageBean]:
- Destination JNDI Name: [jms/TopicName]:
- ActivationSpec Authentication Alias: [null]:
The default Destination JNDI Name is collected from the corresponding message reference.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install $ear {-BindJndiForEJBMessageBinding {{Ejb1 MessageBean ejb-jar-ic.jar,META-INF/ejb-jar.xml myListenerPort jndi1 jndiDest1 actSpecAuth1}}}
Jacl with pattern matching:
$AdminApp install $ear {-BindJndiForEJBMessageBinding {{.* .* .*.jar,.* myListenerPort jndi1 jndiDest1 actSpecAuth1}}}
Jython:
AdminApp.install( ear, ['-BindJndiForEJBMessageBinding', [['Ejb1', 'MessageBean', 'ejb-jar-ic.jar,META-INF/ejb-jar.xml', 'myListenerPort', 'jndi1', 'jndiDest1', 'actSpecAuth1']]])
Jython with pattern matching:
AdminApp.install( ear, ['-BindJndiForEJBMessageBinding', [['.*', '.*', '.*.jar,.*', 'myListenerPort', 'jndi1', 'jndiDest1', 'actSpecAuth1']]])
BindJndiForEJBNonMessageBinding
Bind enterprise beans to JNDI names. Ensure each non message-driven enterprise bean in the application or module is bound to a JNDI name. Use this option to provide missing data or update a task.
The current contents of the option after running default bindings include:
- EJBModule: Ejb1
- EJB: MessageBean
- URI: ejb-jar-ic.jar,META-INF/ejb-jar.xml
- Target Resource JNDI Name: [com.acme.ejbws.AnnuityMgmtSvcEJB2xJAXRPC]
- Local Home JNDI Name: [null]
- Remote Home JNDI Name: [null]
Special constraints exist for EJB 3.0 and later modules. If we specify the target resource JNDI name, do not specify the local home or remote home JNDI names. You also cannot specify the JNDI for business interfaces field in the BindJndiForEJBBusiness option. If we do not specify the target resource JNDI name, then the local and remote home JNDI name fields are optional. If we do not specify local and remote JNDI names, the run time provides a container default.
If we do not use EJB 3.0 modules, specify the target resource JNDI name.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Batch mode example usage
Jacl:
$AdminApp install /myapp.ear {-BindJndiForEJBNonMessageBinding {{Ejb1 MessageBean ejb-jar-ic.jar,META-INF/ejb-jar.xml com.acme.ejbws.AnnuityMgmtSvcEJB2xJAXRPC "" ""}}}
Jacl with pattern matching:
$AdminApp install app_server_root/samples/SCA/installableApps/JobbankTargetEJBApp.ear {-BindJndiForEJBNonMessageBinding {{.* .* ResumeBankAppEJB.jar,META-INF/ejb-jar.xml ejb/com/app/ResumeBank/ResumeBank "" "" }}}
Jython:
AdminApp.install('myapp.ear', '[-BindJndiForEJBNonMessageBinding [[Ejb1 MessageBean ejb-jar-ic.jar,META-INF/ejb-jar.xml com.acme.ejbws.AnnuityMgmtSvcEJB2xJAXRPC "" ""]]]')
Jython with pattern matching:
AdminApp.install('app_server_root/samples/SCA/installableApps/JobbankTargetEJBApp.ear', '[ -BindJndiForEJBNonMessageBinding [[ .* .* ResumeBankAppEJB.jar,META-INF/ejb-jar.xml ejb/com/app/ResumeBank/ResumeBank "" "" ]] ]' )
blaname
Name of business level application under which the system creates the Java EE application. Optional. If we do not specify a value, the system sets the name as the Java EE application name. This option is available only with the install command.
buildVersion
Build version of an application EAR file. We cannot modify this option because it is read-only. This option returns the build version information for an application EAR if we have specified the build version in the MANIFEST.MF application EAR file.
cell
Dell name to install or update an entire application, or to update an application in order to add a new module. To update an entire application, this option only applies if the application contains a new module that does not exist in the installed application.
Batch mode example usage
Jacl:
$AdminApp install "/samples/SCA/installableApps/JobbankTargetEJBApp.ear" {-cell cellName}
Jython:
AdminApp.install('/samples/SCA/installableApps/JobbankTargetEJBApp.ear', '[-cell cellName]')
clientMode
Deploy client modules to an isolated deployment target (isolated), a federated node of a deployment manager (federated), or an application server (server_deployed). If we specify this option, install the client modules only onto a v8.0 or later deployment target.
Default is isolated.
The choice of client deployment mode affects how java: lookups are handled. All Java URL name spaces (global, application, module, and component) are local in isolated client processes. The name spaces reside on a server in federated and server deployed client processes. The server chosen as a target for a client module determines where those name spaces are created. All java: lookups for federated or server deployed client modules are directed to the target server. The client module does not actually run in the target server. Multiple instances of the same client module will all share the component name space in the federated and server deployed modes. Choosing the federated mode is simply a declaration of intent to launch the client module using Java Network Launching Protocol (JNLP), but the JNDI mechanics of federated and server deployed modes are the same.
contents
File containing the content to update. For example, depending on the content type, the file could be an EAR file, a module, a partial zip, or a single file.
The path to the file must be local to the scripting client. The contents option is required unless we have specified the delete option.
contenturi
URI of the file that you are adding, updating, or removing from an application. This option only applies to the update command. The contenturi option is required if the content type is file or modulefile. This option is ignored for other content types.
contextroot
Context root to use when installing a stand-alone WAR file.
CorrectOracleIsolationLevel
Isolation level for the Oracle type provider. Use this option to provide missing data or to update a task. The last field of each entry specifies the isolation level. Valid isolation level values are 2 or 4.
Use AdminApp taskInfo to obtain information. You only need to provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install myapp.ear {-CorrectOracleIsolationLevel {{AsyncSender jms/MyQueueConnectionFactory jms/Resource1 2}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-CorrectOracleIsolationLevel {{.* jms/MyQueueConnectionFactory jms/Resource1 2}}
Jython:
AdminApp.install('myapp.ear', '[-CorrectOracleIsolationLevel [[AsyncSender jms/MyQueueConnectionFactory jms/Resource1 2]]]')
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-CorrectOracleIsolationLevel', [['.*', 'jms/MyQueueConnectionFactory', 'jms/Resource1', 2]]])
CorrectUseSystemIdentity
Replace RunAs System to RunAs Roles. The enterprise beans that you install contain a RunAs system identity. We can optionally change this identity to a RunAs role. Use this option to provide missing data or update a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Batch mode example usage
Jacl:
$AdminApp install myapp.ear {-CorrectUseSystemIdentity {{Inc "Increment Bean Jar" Increment.jar,META-INF/ejb-jar.xml getValue() RunAsUser2 user2 password2} {Inc "Increment Bean Jar" Increment.jar,META-INF/ejb-jar.xml Increment() RunAsUser2 user2 password2}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-CorrectUseSystemIdentity {{.* .* .* getValue() RunAsUser2 user2 password2} {.* .* .* Increment() RunAsUser2 user2 password2}}}
Jython:
AdminApp.install('myapp.ear', '[-CorrectUseSystemIdentity [[Inc "Increment Bean Jar" Increment.jar,META-INF/ejb-jar.xml getValue() RunAsUser2 user2 password2] [Inc "Increment Bean Jar" Increment.jar,META-INF/ejb-jar.xml Increment() RunAsUser2 user2 password2]]]')
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-CorrectUseSystemIdentity', [['.*', '.*', '.*', 'getValue()', 'RunAsUser2', 'user2', 'password2'], ['.*', '.*', '.*', 'Increment()', 'RunAsUser2', 'user2', 'password2']]])
createMBeansForResources
MBeans are created for all resources, such as servlets, JSP files, and enterprise beans, that are defined in an application when the application starts on a deployment target. This option does not require a value. The default setting is the nocreateMBeansForResources option.
CtxRootForWebMod
Edit the context root of the web module. We can edit a context root defined in application.xml using this option. The current contents of this option after running default bindings are the following:
- Web module: xxx
- URI: xxx
- ContextRoot: <context root>
If the web module is a Servlet 2.5, the contents of this option are populated only from the XML deployment descriptor. We cannot get deployment information from annotations with this option.
Jacl:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname ivtApp -CtxRootForWebMod {{"IVT Application" ivt_app.war,WEB-INF/web.xml /mycontextroot}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-appname MyApp -CtxRootForWebMod {{.* .* /mycontextroot}}}
Jython:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'ivtApp ', '-CtxRootForWebMod', [["IVT Application", 'ivt_app.war,WEB-INF/web.xml', '/mycontextroot']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-appname', 'MyApp', '-CtxRootForWebMod', [['.*', '.*', '/mycontextroot']]])
custom
Name-value pair using the format name=value. Use the custom option to pass options to application deployment extensions. See the application deployment extension documentation for available custom options.
CustomActivationPlan
Runtime components to add or remove from the default runtime components used to run the application. Only use this option when the application server can not obtain all necessary runtime components by inspecting the application.
Jython:
AdminApp.install('Increment.jar','[-CustomActivationPlan [["Increment Enterprise Java Bean" Increment.jar,META-INF/ejb-jar.xml WebSphere:specname=WS_ComponentToAdd ""]]')
Jython with pattern matching:
AdminApp.install('Increment.jar','[-CustomActivationPlan [[.* Increment.jar,META-INF/ejb-jar.xml WebSphere:specname=WS_ComponentToAdd ""]]')
CustomActivationPlan components to add. Specify a WS_ComponentToAdd value in the command.
Component WS_ComponentToAdd value EJB container WS_EJBContainer Portlet container WS_PortletContainer JavaServer Faces (JSF) WS_JSF SIP container WS_SipContainer Compensation scope service WS_Compensation Application profile WS_AppProfile Activity session WS_ActivitySession Internationalization WS_I18N Startup beans WS_StartupService DataSourceFor10CMPBeans
Data sources for individual 1.x container-managed persistence beans. Use this option to provide missing data or to update a task.
Mapping a specific data source to a CMP bean overrides the default data source for the module containing the enterprise bean. Each element of the DataSourceFor10CMPBeans option consists of the following fields: EJBModule, EJB, uri, JNDI, userName, password, login.config.name, and auth.props. Of these fields, the following can be assigned values: JNDI, userName, password, login.config.name, and auth.props.
The current contents of the option after running default bindings include:
- EJBModule: Increment CMP 1.1 EJB
- EJB: IncCMP11
- URI: IncCMP11.jar,META-INF/ejb-jar.xml
- JNDI name: [DefaultDatasource]:
- User name: [null]:
- Password: [null]:
- Login Configuration Name: [null]: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
- Properties: [null]: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
If the login.config.name is set to DefaultPrincipalMapping, a property is created with the name com.ibm.mapping.authDataAlias. The value of the property is set by the auth.props. If the login.config name is not set to DefaultPrincipalMapping, the auth.props can specify multiple properties. The string format is websphere:name= <name1>,value=<value1>,description=<desc1>. Specify multiple properties using the plus sign (+) .
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or requiring an update.
Batch mode example usage
Jacl:
$AdminApp install myapp.ear {-DataSourceFor10CMPBeans {{"Increment CMP 1.1 EJB" IncCMP11 IncCMP11.jar,META-INF/ejb-jar.xml myJNDI user1 password1 loginName1 authProps1}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-DataSourceFor10CMPBeans {{.* .* IncCMP11.jar,.* myJNDI user1 password1 loginName1 authProps1}}}
Jython:
AdminApp.install('myapp.ear', ['-DataSourceFor10CMPBeans', [["Increment CMP 1.1 EJB", 'IncCMP11', 'IncCMP11.jar,META-INF/ejb-jar.xml', 'myJNDI', 'user1', 'password1', 'loginName1', 'authProps1']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-DataSourceFor10CMPBeans', [['.*', '.*', 'IncCMP11.jar,.*', 'myJNDI', 'user1', 'password1', 'loginName1', 'authProps1']]])
DataSourceFor20CMPBeans
Optional data sources for individual 2.x container-managed persistence beans. Use this option to provide missing data or to update a task.
Mapping a specific data source to a CMP bean overrides the default data source for the module containing the enterprise bean. Each element of the DataSourceFor20CMPBeans option consists of the following fields: EJBModule, EJB, uri, JNDI, resAuth, login.config.name, and auth.props. Of these fields, the following can be assigned values: JNDI, resAuth, login.config.name, and auth.props.
The current contents of the option after running default bindings includes the following:
- EJBModule: Increment enterprise bean
- EJB: Increment
- URI: Increment.jar,META-INF/ejb-jar.xml
- JNDI name: [null]:
- Resource authorization: [Per application]:
- Login Configuration Name: [null]: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
- Properties: []: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
If the login.config.name is set to DefaultPrincipalMapping, a property is created with the name com.ibm.mapping.authDataAlias. The value of the property is set by the auth.props. If the login.config name is not set to DefaultPrincipalMapping, the auth.props can specify multiple properties. The string format is websphere:name= <name1>,value=<value1>,description=<desc1>. Specify multiple properties using the plus sign (+) .
Use AdminApp taskInfo to obtain information. You only need to provide data for rows or entries that are missing information, or requiring an update.
Jacl:
$AdminApp install Increment.jar {-DataSourceFor20CMPBeans {{"Increment Enterprise Java Bean" Increment Increment.jar,META-INF/ejb-jar.xml jndi1 container "" ""}}}
Jacl with pattern matching:
$AdminApp install Increment.jar {-DataSourceFor20CMPBeans {{.* .* Increment.jar,.* jndi1 container "" ""}}}
Jython:
AdminApp.install('Increment.jar', ['-DataSourceFor20CMPBeans', [["Increment Enterprise Java Bean", 'Increment', 'Increment.jar,META-INF/ejb-jar.xml', 'jndi1', 'container', '', '']]])
Jython with pattern matching:
AdminApp.install('Increment.jar', ['-DataSourceFor20CMPBeans', [['.*', '.*', 'Increment', 'Increment.jar,.*', 'jndi1', 'container', '', '']]])
DataSourceFor10EJBModules
Default data source for the enterprise bean module containing 1.x container-managed persistence beans. Use this option to provide missing data or update a task.
Each element of the DataSourceFor10EJBModules option consists of the following fields: EJBModule, uri, JNDI, userName, password, login.config.name, and auth.props. Of these fields, the following can be assigned values: JNDI, userName, password, login.config.name, and auth.props.
The current contents of the option after running default bindings include:
- EJBModule: Increment CMP 1.1 enterprise bean
- uri: IncCMP11.jar,META-INF/ejb-jar.xml
- JNDI name: [DefaultDatasource]:
- User name: [null]:
- Password: [null]:
- Login Configuration Name: [null]: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
- Properties: [null]: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
If the login.config.name is set to DefaultPrincipalMapping, a property is created with the name com.ibm.mapping.authDataAlias. The value of the property is set by the auth.props. If the login.config name is not set to DefaultPrincipalMapping, the auth.props can specify multiple properties. The string format is websphere:name= <name1>,value=<value1>,description=<desc1>. Specify multiple properties using the plus sign (+).
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install myapp.ear {-DataSourceFor10EJBModules {{"Increment CMP 1.1 EJB" IncCMP11.jar,META-INF/ejb-jar.xml yourJNDI user2 password2 loginName authProps}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-DataSourceFor10EJBModules {{.* IncCMP11.jar,.* yourJNDI user2 password2 loginName authProps}}}
Jython:
AdminApp.install('myapp.ear', ['-DataSourceFor10EJBModules', [["Increment CMP 1.1 EJB", 'IncCMP11.jar,META-INF/ejb-jar.xml', 'yourJNDI', 'user2', 'password2', 'loginName', 'authProps']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-DataSourceFor10EJBModules', [['.*', 'IncCMP11.jar,.*', 'yourJNDI', 'user2', 'password2', 'loginName', 'authProps']]])
DataSourceFor20EJBModules
Default data source for the enterprise bean 2.x module containing 2.x container managed persistence (CMP) beans. Use this option to provide missing data or update a task.
Each element of the DataSourceFor20EJBModules option consists of the following fields: EJBModule, uri, JNDI, resAuth, login.config.name, and auth.props. Of these fields, the following can be assigned values: JNDI, resAuth, login.config.name, auth.props, and extended datasource properties.
The current contents of the option after running default bindings include:
- EJBModule: Increment enterprise bean
- URI: Increment.jar,META-INF/ejb-jar.xml
- JNDI name: [DefaultDatasource]:
- Resource authorization: [Per application]:
- Login Configuration Name: [null]: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
- Properties: []: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
- Extended Data source properties: []: Use this option so that a data source that uses heterogeneous pooling can connect to a DB2 database. The pattern for the property is property1=value1+property2=value2.
The last field in each entry of this task specifies the value for resource authorization. Valid values for resource authorization are per connection factory or container.
If the login.config.name is set to DefaultPrincipalMapping, a property is created with the name com.ibm.mapping.authDataAlias. The value of the property is set by the auth.props. If the login.config name is not set to DefaultPrincipalMapping, the auth.props can specify multiple properties. The string format is websphere:name= <name1>,value=<value1>,description=<desc1>. Specify multiple properties using the plus sign (+) .
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are either missing information, or require update.
Jacl:
$AdminApp install Increment.jar {-DataSourceFor20EJBModules {{"Increment Enterprise Java Bean" Increment.jar,META-INF/ejb-jar.xml jndi2 container "" "" ""}}}
Jacl with pattern matching:
$AdminApp install Increment.jar {-DataSourceFor20EJBModules {{.* Increment.jar,.* jndi2 container "" "" ""}}}
If we use multiple values for extended data source properties, you must assign the values to a variable and use that variable for the property value. For example:
set s \"value1,value2\"
In the command substitution, reference the variable as shown in the following example:"clientApplicationInformation=value1,value2" with "clientapplication=$s"
Jython:
AdminApp.install('Increment.jar', ['-DataSourceFor20EJBModules', [["Increment Enterprise Java Bean", 'Increment.jar,META-INF/ejb-jar.xml', 'jndi2', 'container', '', '', '']]])
Jython with pattern matching:
AdminApp.install('Increment.jar', ['-DataSourceFor20EJBModules', [['.*', 'Increment.jar,.*', 'jndi2', 'container', '', '', '']]])
If we use multiple values for extended data source properties, surround the two values with double quote characters. For example:
'property1="value1,value2"+property2="value3,value4"'
defaultbinding.cf.jndi
JNDI name for the default connection factory.
defaultbinding.cf.resauth
RESAUTH for the connection factory.
defaultbinding.datasource.jndi
JNDI name for the default data source.
defaultbinding.datasource.password
Password for the default data source.
defaultbinding.datasource.username
User name for the default data source.
defaultbinding.ejbjndi.prefix
Prefix for the enterprise bean JNDI name.
defaultbinding.force
Default bindings override the current bindings.
defaultbinding.strategy.file
Custom default bindings strategy file.
defaultbinding.virtual.host
Default name for a virtual host.
depl.extension.reg (deprecated)
Deprecated feature: The depl.extension.reg option is deprecated. No replication option is available.
deployejb
Run the EJBDeploy tool during installation. This option does not require a value. The EJBDeploy runs during installation of EJB 1.x or 2.x modules. The EJB deployment tool does not run during installation of EJB 3.x modules.
If you pre-deploy the application EAR file using the EJBDeploy tool then the default value is nodeployejb. If not, the default value is deployejb.
You must use this deployejb option in the following situations:
- The EAR file was assembled using an assembly tool such as Rational Application Developer and the EJBDeploy tool was not run during assembly.
- The EAR file was not assembled using an assembly tool such as Rational Application Developer.
- The EAR file was assembled using versions of the Application Assembly Tool (AAT) previous to v5.0.
If an EJB module is packaged in a web archive (WAR), we do not need to use this deployejb option.
For this option, install only onto a v6.1 or later deployment target.
deployejb.classpath
Extra class path for the EJBDeploy tool.
deployejb.complianceLevel
JDK compliance level for the EJBDeploy tool.
Possible values include:
1.4 (default) 5.0 6.0
For a list of currently supported JDK compliance levels, run the ejbdeploy -? command.
deployejb.dbschema
Database schema for the EJBDeploy tool.
deployejb.dbtype
Database type for the EJBDeploy tool.
Possible values include:
DB2UDB_V81 DB2UDB_V82 DB2UDB_V91 DB2UDB_V95 DB2UDBOS390_V8 DB2UDBOS390_NEWFN_V8 DB2UDBOS390_V9 DB2UDBISERIES_V53 DB2UDBISERIES_V54 DB2UDBISERIES_V61 DERBY_V10 DERBY_V101 INFORMIX_V100 INFORMIX_V111 INFORMIX_V115 MSSQLSERVER_2005 ORACLE_V10G ORACLE_V11G SYBASE_V15 SYBASE_V125
The following databases support SQLJ: DB2UDB_V82, DB2UDB_V81, DB2UDBOS390_V7, and DB2UDBOS390_V8.For a list of supported database vendor types, run the ejbdeploy -? command.
deployejb.dbaccesstype
Type of database access for the EJBDeploy tool. Valid values are SQLj and JDBC. The default is JDBC.
deployejb.rmic
Extra RMIC options to use for the EJBDeploy tool.
deployejb.sqljclasspath
Location of the SQLJ translator classes.
deployws
Deploy web services during installation. This option does not require a value.
Default is: nodeployws.
deployws.classpath
Extra class path to use when we deploy web services.
To specify the class paths of multiple entries, separate the entries with the same separator used with the CLASSPATH environment variable. For Windows, use a semicolon (;) to separate the entries. For Unix use a colon (:) to separate the entries.
deployws.jardirs
Extra extension directories to use when we deploy web services.
distributeApp
Application management component distribute application binaries. This option does not require a value. This setting is the default.
EmbeddedRar
Bind Java 2 Connector objects to JNDI names. You must bind each Java 2 Connector object in the application or module, such as, J2C connection factories, J2C activation specifications and J2C administrative objects, to a JNDI name. Each element of the EmbeddedRar option contains the following fields: RARModule, uri, j2cid, j2c.name, j2c.jndiName. We can assign the following values to the fields: j2c.name, j2c.jndiName.
The current contents of the option after running default bindings include:
Module: <rar module name>
URI: <rar name>,META-INF/ra.xml
Object identifier: <identifier of the J2C object>
name: j2cid JNDI name: eis/j2cidWhere j2cid is:
J2C connection factory: connectionFactoryInterface
J2C admin object: adminObjectInterface
J2C activation specification: message listener typeUse AdminApp taskInfo to obtain information. Provide data for rows or entries that are either missing information, or requiring an update.
If the ID is not unique in ra.xml, -<number> will be added. For example, javax.sql.DataSource-2.
Batch mode example usage
Jacl:
$AdminApp install $embeddedEar {-EmbeddedRar {{"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.sql.DataSource javax.sql.DataSource1 eis/javax.sql.javax.sql.DataSSource1} {"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.sql.DataSource2 javax.sql.DataSource2 eis/javax.sql.DataSource2} {"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.jms.MessageListener javax.jms.MessageListener1 eis/javax.jms.MessageListener1} {"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml javax.jms.MessageLListener2 javax.jms.MessageListener2 eis/javax.jms.MessageListener2} {"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml fvt.adapter.message.FVTMessageProvider fvt.adapter.message.FVTMessageProvider1 eis/fvt.adapter.message.FVTMessageProvider1} {"FVT Resource Adapter" jca15cmd.rar,META-INF/ra.xml fvt.adapter.message.FVTMessageProvider2 fvt.adapter.message.FVTMessageProvider2 eis/fvt.adapter.message.FVTMessageProvider2}}}
Jacl with pattern matching:
$AdminApp install $embeddedEar {-EmbeddedRar {{.* .* .* javax.sql.DataSource1 eis/javax.sql.javax.sql.DataSSource1} {.* .* .* javax.sql.DataSource2 eis/javax.sql.DataSource2} {.* .* .* javax.jms.MessageListener1 eis/javax.jms.MessageListener1} {.* .* .* javax.jms.MessageListener2 eis/javax.jms.MessageListener2} {.* .* .* fvt.adapter.message.FVTMessageProvider1 eis/fvt.adapter.message.FVTMessageProvider1} {.* .* .* fvt.adapter.message.FVTMessageProvider2 eis/fvt.adapter.message.FVTMessageProvider2}}}
Jython:
AdminApp.install(embeddedEar, ['-EmbeddedRar', [["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'javax.sql.DataSource', 'javax.sql.DataSource1', 'eis/javax.sql.javax.sql.DataSSource1'], ["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml javax.sql.DataSource2', 'javax.sql.DataSource2', 'eis/javax.sql.DataSource2'], ["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'javax.jms.MessageListener', 'javax.jms.MessageListener1', 'eis/javax.jms.MessageListener1'], ["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'javax.jms.MessageLListener2', 'javax.jms.MessageListener2', 'eis/javax.jms.MessageListener2'], ["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml fvt.adapter.message.FVTMessageProvider', 'fvt.adapter.message.FVTMessageProvider1', 'eis/fvt.adapter.message.FVTMessageProvider1'], ["FVT Resource Adapter", 'jca15cmd.rar,META-INF/ra.xml', 'fvt.adapter.message.FVTMessageProvider2', 'fvt.adapter.message.FVTMessageProvider2', 'eis/fvt.adapter.message.FVTMessageProvider2']]])
Jython with pattern matching:
AdminApp.install(embeddedEar, ['-EmbeddedRar', [['.*', '.*', '.*', 'javax.sql.DataSource1', 'eis/javax.sql.javax.sql.DataSSource1'], ['.*', '.*', '.*', 'javax.sql.DataSource2', 'eis/javax.sql.DataSource2'], ['.*', '.*', '.*', 'javax.jms.MessageListener1', 'eis/javax.jms.MessageListener1'], ['.*', '.*', '.*', 'javax.jms.MessageListener2', 'eis/javax.jms.MessageListener2'], ['.*', '.*', '.*', 'fvt.adapter.message.FVTMessageProvider1', 'eis/fvt.adapter.message.FVTMessageProvider1'], ['.*', '.*', '.*', 'fvt.adapter.message.FVTMessageProvider2', 'eis/fvt.adapter.message.FVTMessageProvider2']]])
enableClientModule
Deploy client modules. Select this option if the file to deploy has one or more client modules to deploy. If selected, install the client modules only onto a v8.0 or later deployment target.
This option does not require a value. Default is noenableClientModule. By default, the enableClientModule option is ignored during deployment and client modules are not deployed.
EnsureMethodProtectionFor10EJB
Method protections for unprotected methods of 1.x enterprise beans. Specify to leave the method as unprotected, or assign protection which denies all access. Use this option to provide missing data or to update a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are either missing information, or requiring an update.
Batch mode example usage
Jacl:
$AdminApp install Increment.jar {-EnsureMethodProtectionFor10EJB {{"Increment EJB Module" IncrementEJBBean.jar,META-INF/ejb-jar.xml ""} {"Timeout EJB Module" TimeoutEJBBean.jar,META-INF/ejb-jar.xml methodProtection.denyAllPermission}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-EnsureMethodProtectionFor10EJB {{.* IncrementEJBBean.jar,.* ""} {.* TimeoutEJBBean.jar,.* methodProtection.denyAllPermission}}}
Jython:
AdminApp.install('Increment.jar', '[-EnsureMethodProtectionFor10EJB [["Increment EJB Module" IncrementEJBBean.jar,META-INF/ejb-jar.xml ""] ["Timeout EJB Module" TimeoutEJBBean.jar,META-INF/ejb-jar.xml methodProtection.denyAllPermission]]]')
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-EnsureMethodProtectionFor10EJB', [['.*', 'IncrementEJBBean.jar,.*', ""], ['.*', 'TimeoutEJBBean.jar,.*', 'methodProtection.denyAllPermission']]])
The last field in each entry of this task specifies the value of the protection. Valid protection values include: methodProtection.denyAllPermission. We can also leave the value blank if you want the method to remain unprotected.
EnsureMethodProtectionFor20EJB
Method protections for unprotected methods of 2.x enterprise beans. Specify to assign a security role to the unprotected method, add the method to the exclude list, or mark the method as cleared. We can assign multiple roles for a method by separating roles names with commas. Use this option to provide missing data or to update a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are either missing information, or require an update the existing data.
Batch mode example usage
Jacl:
$AdminApp install myapp.ear {-EnsureMethodProtectionFor20EJB {{CustmerEjbJar customerEjb.jar,META-INF/ejb-jar.xml methodProtection.uncheck} {SupplierEjbJar supplierEjb.jar,META-INF/ejb-jar.xml methodProtection.exclude}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-EnsureMethodProtectionFor20EJB {{.* customerEjb.jar,.* methodProtection.uncheck} {.* supplierEjb.jar,.* methodProtection.exclude}}}
Jython:
AdminApp.install('myapp.ear', '[-EnsureMethodProtectionFor20EJB [[CustmerEjbJar customerEjb.jar,META-INF/ejb-jar.xml methodProtection.uncheck] [SupplierEjbJar supplierEjb.jar,META-INF/ejb-jar.xml methodProtection.exclude]]]')
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-EnsureMethodProtectionFor20EJB', [['.*', 'customerEjb.jar,.*', 'methodProtection.uncheck'], ['.*', 'supplierEjb.jar,.*', 'methodProtection.exclude']]])
The last field in each entry of this task specifies the value of the protection. Valid protection values include: methodProtection.uncheck, methodProtection.exclude, or a list of security roles that are separated by commas.
filepermission
Set the appropriate file permissions on application files located in the installation directory. File permissions specified at the application level must be a subset of the node level file permission that defines the most lenient file permission that can be specified. Otherwise, node level permission values are used to set file permissions in the installation destination. The file name pattern is a regular expression. Default is the following:
.*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755
Jacl:
$AdminApp install app_server_root/installableApps/DynaCacheEsi.ear {-appname MyApp -cell myCell -node myNode -server server1 -filepermission .*\\.jsp=777#.*\\.xml=755}
Jython:
AdminApp.install("app_server_root/installableApps/DynaCacheEsi.ear", ["-appname", "MyApp", "-cell", "myCell", "-node", "myNode", "-server", "server1", "-filepermission", ".*\\.jsp=777#.*\\.xml=755"])
installdir (deprecated)
Deprecated feature: The installdir option is deprecated. This option is replaced by the installed.ear.destination option.
installed.ear.destination
Directory to place application binaries.
JSPCompileOptions
JSP compilation options for web modules. This option is only valid if we use the preCompileJSPs option also. The current contents of this option after running default bindings are the following:
- Web module: xxx
- URI: xxx
- JSP Class Path: <jsp class path>
- Use Full Package Names: Yes | No
- JDK Source Level: xx
- Disable JSP Runtime Compilation: Yes | No
For Use Full Package Names and Disable JSP Runtime Compilation, specify a Yes or No value in the language specific for the locale. WAS v8.5 supports the values AppDeploymentOption.Yes and AppDeploymentOption.No instead of Yes and No. However, IBM recommends specified Yes or No in the language for the locale.
Jacl:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp -preCompileJSPs -JSPCompileOptions {{"IVT Application" ivt_app.war,WEB-INF/web.xml jspcp Yes 15 No}}}
Jacl with pattern matching:
$AdminApp install ivtApp.ear {-appname MyApp -preCompileJSPs -JSPCompileOptions {{.* .* jspcp Yes 15 No}}}
Jython:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp', '-preCompileJSPs', '-JSPCompileOptions', [["IVT Application", 'ivt_app.war,WEB-INF/web.xml', 'jspcp', 'Yes', 15, 'No']]])
Jython with pattern matching:
AdminApp.install('ivtApp.ear', ['-appname', 'MyApp', '-preCompileJSPs', '-JSPCompileOptions', [['.*', '.*', 'jspcp', 'Yes', 15, 'No']]])
JSPReloadForWebMod
Edit the JSP reload attributes for the web module. We can specify the reload attributes of the servlet and JSP for each module. The current contents of the option after running default bindings are the following:
- Web module: xxx
- URI: xxx
- JSP enable class reloading: <Yes | No>
- JSP reload interval in seconds: <jsp reload internal number>
Use the taskInfo command of the AdminApp object to obtain information about the data needed for the application.
For JSP enable class reloading, specify a Yes or No value in the language specific for the locale. WAS v8.5 supports the values AppDeploymentOption.Yes and AppDeploymentOption.No instead of Yes and No. However, IBM recommends specified Yes or No in the language for the locale.
Jacl:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp -JSPReloadForWebMod {{"IVT Application" ivt_app.war,WEB-INF/web.xml Yes 5}}}
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp -JSPReloadForWebMod {{.* .* Yes 5}}}
Jython:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp', '-JSPReloadForWebMod [["IVT Application" ivt_app.war,WEB-INF/web.xml Yes 5 ]]'])
Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp', '-JSPReloadForWebMod', [['.*', '.*', 'Yes', ‘5']]])
For IBM extension and binding files, the .xmi or .xml file name extension is different depending on whether you are using a pre-Java EE 5 application or module or a Java EE 5 or later application or module. An IBM extension or binding file is named ibm-*-ext.xmi or ibm-*-bnd.xmi where * is the type of extension or binding file such as app, application, ejb-jar, or web. The following conditions apply:
- For apps and modules that use a Java EE version prior to version 5, the file extension must be .xmi.
- For apps and modules that use Java EE 5 or later, the file extension must be .xml. If .xmi files are included with the application or module, the product ignores the .xmi files.
However, a Java EE 5 or later module can exist within an application that includes pre-Java EE 5 files and uses the .xmi file name extension.
The ibm-webservices-ext.xmi, ibm-webservices-bnd.xmi, ibm-webservicesclient-bnd.xmi, ibm-webservicesclient-ext.xmi, and ibm-portlet-ext.xmi files continue to use the .xmi file extensions. sptcfg
MapEJBRefToEJB
Map enterprise Java references to enterprise beans. You must map each enterprise bean reference defined in the application to an enterprise bean. Use this option to provide missing data or update to a task.
If the EJB reference is from an EJB 3.x, Web 2.4, or Web 2.5 module, the JNDI name is optional. If we specify the useAutoLink option, the JNDI name is optional. The run time provides a container default. An EJB 3.0 or later module cannot contain container-managed or bean-managed persistence entity beans. Installation fails when a container-managed or bean-managed persistence entity bean is packaged in an EJB 3.x module of a Java EE application. We can only package container-managed or bean-managed persistence beans in an EJB 2.1 or earlier module.
Use AdminApp taskInfo to obtain information. You only need to provide data for rows or entries that are missing information, or those where to update the existing data.
Jacl:
$AdminApp install techapp.ear {-MapEJBRefToEJB {{"JAASLogin" "" JAASLoginWeb.war, WEB-INF/web.xml WSsamples/JAASLogin jaasloginejb.SampleBean TechApp/JAASLogin}} -MapWebModToVH {{"Web Application" Tech.war,WEB-INF/web.xml default_host}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-MapEJBRefToEJB {{.* .* .* .* .* MyBean}}}
Jython:
AdminApp.install('techapp.ear','[ -MapEJBRefToEJB [["JAASLogin" "" JAASLoginWeb.war,WEB-INF/web.xml WSsamples/JAASLogin]] -MapWebModToVH [["Web Application" tech.war,WEB-INF/web.xml default_host]]]')
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-MapEJBRefToEJB', [['.*', '.*', '.*', '.*', '.*', 'MyBean']]])
MapEnvEntryForApp
Edit the env-entry value of the application. We can use this option to edit the value of env-entry in application.xml.
The current contents of this option after running default bindings are the following:
- Name: xxx
- Type: xxx
- Description: xxx
If after running the default bindings, the value is a null value, you must change the value to .* before running this task. The .* value is the wildcard value that lets any description be a match. If you leave the value as null, exceptions will occur when we run the MapEnvEntryForApp task.
- Value: <env-entry value>
Use the taskInfo command of the AdminApp object to obtain information about the data needed for the application.
Jacl:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp -MapEnvEntryForApp {{MyApp/appEnvEntry String null newEnvEntry}}}
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp2 -MapEnvEntryForApp {{.* .* .* newEnvEntry}}}
Jython:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp3', '-MapEnvEntryForApp', [['MyApp/appEnvEntry', 'String', 'null', 'newEnvEntry']]])
Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp4', '-MapEnvEntryForApp', [['.*', '.*', '.*', 'newEnvEntry']]])
If there is a new line character in the description, use the following syntax:
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp5 -MapEnvEntryForApp {{.* .* (?s).* newEnvEntry}}}
Using Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp6', '-MapEnvEntryForApp', [['.*', '.*', '(?s).*', 'newEnvEntry']]])
MapEnvEntryForEJBMod
Edit the env-entry value of the EJB module. We can use this option to edit the value of environment entries in the EJB module, ejb-jar.xml.
The current contents of this option after running default bindings are the following:
- EJB module: xxx
- URI: xxx
- EJB: xxx
- Name: xxx
- Type: xxx
- Description: xxx
If after running the default bindings, the value is a null value, you must change the value to .* before running this task. The .* value is the wildcard value that lets any description be a match. If you leave the value as null, WASX7017E and WASX7111E exceptions will occur when we run the MapEnvEntryForEJBMod task. gotcha
- Value: <env-entry value>
If the EJB module uses EJB 3.0 or later, the contents of this option are populated only from the XML deployment descriptor. We cannot get deployment information from annotations with this option.
Use AdminApp taskInfo to obtain information.
Jacl:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp -MapEnvEntryForEJBMod {{"IVT EJB Module" ivtEJB.jar,META-INF/ejb-jar.xml ivtEJBObject ejb/ivtEJBObject String null newValue}}}
Jacl with pattern matching:
$AdminApp install myapp.jar {-appname MyApp -MapEnvEntryForEJBMod {{.* .* .* .* .* .* newValue}}}
Jython:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp', '-MapEnvEntryForEJBMod', [["IVT EJB Module", 'ivtEJB.jar,META-INF/ejb-jar.xml', 'ivtEJBObject', 'ejb/ivtEJBObject', 'String', 'null', 'newValue']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-appname', 'MyApp', '-MapEnvEntryForEJBMod', [['.*', '.*', '.*', '.*', '.*', '.*', 'newValue']]])
If there is a new line character in the description, use the following syntax:
Jacl with pattern matching:
$AdminApp install myapp.ear {-appname MyApp -MapEnvEntryForEJBMod {{.* .* .* (?s).* newValue}}}
Using Jython with pattern matching:
AdminApp.install('myapp.ear', ['-appname', 'MyApp', '-MapEnvEntryForEJBMod', [['.*', '.*', '.*', '(?s).*', '*', '*' 'newValue']]])
MapEnvEntryForWebMod
Edit the env-entry value of the web module. We can use this option to edit the value of env-entry in the web.xml file.
The current contents of this option after running default bindings are the following:
- Web module: xxx
- URI: xxx
- Name: xxx
- Type: xxx
- Description: xxx
If, after running the default bindings, the value is a null value, you must change the value to .* before running this task. The .* value is the wildcard value that lets any description be a match. If you leave the value as null, WASX7017E and WASX7111E exceptions will occur when we run the MapEnvEntryForWebMod task. gotcha
- Value: <env-entry value>
If the web module uses a Servlet 2.5, the contents of this option are populated only from the XML deployment descriptor. We cannot get deployment information from annotations with this option.
Use AdminApp taskInfo to obtain information.
Jacl:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp -MapEnvEntryForWebMod {{"IVT Application" ivt_app.war, WEB-INF/web.xml ivt/ivtEJBObject String null newEnvEntry}}}
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp2 -MapEnvEntryForWebMod {{.* .* .* .* newEnvEntry}}}
Jython:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp3', '-MapEnvEntryForWebMod', [["IVT Application", 'ivt_app.war,WEB-INF/web.xml', 'ivt/ivtEJBObject', 'String', 'null', 'newEnvEntry']]])
Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp4', '-MapEnvEntryForWebMod', [['.*', '.*', '.*', '.*', 'newEnvEntry']]])
If there is a new line character in the description, use the following syntax:
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp5 -MapEnvEntryForWebMod {{.* .* .* (?s).* newEnvEntry}}}
Using Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp6', '-MapEnvEntryForWebMod', [['.*', '.*', '.*', '(?s).*', 'newEnvEntry']]])
MapInitParamForServlet
Edits The initial parameter of a web module. We can use this option to edit the initial parameter of a servlet in web.xml. The current contents of this option after running the default bindings are the following:
- Web module: xxx
- URI: xxx
- Servlet: xxx
- Name: xxx
- Description: null
- Value: <initial parameter value>
If the web module uses a Servlet 2.5 or later, the contents of this option are populated only from the XML deployment descriptor. We cannot get deployment information from annotations with this option.
Use AdminApp taskInfo to obtain information.
Jacl:
$AdminApp install app_server_root/installableApps/ivtApp.ear {-appname MyApp -MapInitParamForServlet {{"IVT Application" ivt_app.war,WEB-INF/web.xml ivtservlet pName1 null MyInitParamValue}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-appname MyApp -MapInitParamForServlet {{.* .* .* .* .* MyInitParamValue}}}
Jython:
AdminApp.install('app_server_root/installableApps/ivtApp.ear', ['-appname', 'MyApp', '-MapInitParamForServlet', [["IVT Application", 'ivt_app.war,WEB-INF/web.xml', 'ivtservlet', 'pName1', 'null', 'MyInitParamValue']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-appname', 'MyApp', '-MapInitParamForServlet', [['.*', '.*', '.*', '.*', '.*', 'MyInitParamValue']]])
MapJaspiProvider
Web application or web modules where to override the Java Authentication SPI (JASPI) settings from the global or domain security configuration. The contents of this option are the following:
- Module: xxx
- URI: xxx
- Use JASPI: Yes | No | Inherit
- JASPI provider name: xxx
For Use JASPI, specify a Yes, No, or Inherit value in the language specific for the locale.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information or that require an update.
Jacl:
$AdminApp install myapp.ear {-MapJaspiProvider {{myapp META-INF/application.xml Yes Provider1} }}
Jython:
AdminApp.install('myapp.ear', '[-appname myapp -MapJaspiProvider [[myapp META-INF/application.xml Yes Provider1] ]]')
MapMessageDestinationRefToEJB
Map message destination references to JNDI names of administrative objects from the installed resource adapters. You must map each message destination reference defined in the application to an administrative object. Use this option to provide missing data or to update a task.
The current contents of the option after running default bindings include:
- Module: ejb-jar-ic.jar
- EJB: MessageBean
- URI: ejb-jar-ic.jar,META-INF/ejb-jar.xml
- Message destination object: jms/GSShippingQueue
- Target Resource JNDI Name: [jms/GSShippingQueue]:
If the message destination reference is from an EJB 3.0 or later module, then the JNDI name is optional and the run time provides a container default.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install BankFull.ear {-MapMessageDestinationRefToEJB {{BankCMRQLEJB Sender BankCMRQLEJB.jar,META-INF/ejb-jar.xml BankJSQueue BankJSQueue} }}
Jacl with pattern matching:
$AdminApp install $earfile {-MapMessageDestinationRefToEJB {{.* .* .* MyConnection jndi2} {.* .* .* PhysicalTopic jndi3} {.* .* .* jms/ABC jndi4}}}
Jython:
AdminApp.install('BankFull.ear', '[ -MapMessageDestinationRefToEJB [[ BankCMRQLEJB Sender BankCMRQLEJB.jar,META-INF/ejb-jar.xml BankJSQueue BankJSQueue ]]]' )
Jython with pattern matching:
AdminApp.install(ear1, ['-MapMessageDestinationRefToEJB', [['.*', '.*', '.*', 'MyConnection', 'jndi2'], ['.*', '.*', '.*', 'PhysicalTopic', 'jndi3'], ['.*', '.*', '.*', 'jms/ABC', 'jndi4']]])
MapModulesToServers
Application server to install modules that are contained in the application. We can install modules on the same server, or disperse them among several servers. Use this option to provide missing data or to update to a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Batch mode example usage
The following example installs Increment.jar on one server:
Jacl:
$AdminApp install Increment.jar {-MapModulesToServers {{"Increment Enterprise Java Bean" Increment.jar,META-INF/ejb-jar.xml WebSphere:cell=mycell,node=mynode,server=server1}}}
Jython:
AdminApp.install('Increment.jar', '[-MapModulesToServers [["Increment Enterprise Java Bean" Increment.jar,META-INF/ejb-jar.xml WebSphere:cell=mycell,node=mynode,server=server1] ]]')
The following example removes server1 from the application that is installed:
Jacl:
$AdminApp edit myapp {-MapModulesToServers {{.* .* -WebSphere:cell=mycell,node=mynode,server=server1}} -update -update.ignore.old}
Jython:
AdminApp.edit('myapp', ['-MapModulesToServers', [['.*', '.*', '-WebSphere:cell=mycell,node=mynode,server=server1']]])
MapResEnvRefToRes
Map resource environment references to resources. You must map each resource environment reference defined in the application to a resource. Use this option to provide missing data or to update a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install app_server_root/installableApps/sibwsjmsepl.ear { -BindJndiForEJBMessageBinding {{ SOAPJMSEndpoint SOAPJMSEndpoint SOAPJMSEndpoint.jar,META-INF/ejb-jar.xml lp1 "" "" "" }} -MapResEnvRefToRes {{SOAPJMSEndpoint SOAPJMSEndpoint SOAPJMSEndpoint.jar,META-INF/ejb-jar.xml jms/WebServicesReplyQCF javax.jms.QueueConnectionFactory jndi1}}}
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/sibwsjmsepl.ear { -MapResEnvRefToRes {{.* .* .* .* .* jndi1}}}
Jython:
AdminApp.install('app_server_root/installableApps/sibwsjmsepl.ear', '[ -BindJndiForEJBMessageBinding [[ SOAPJMSEndpoint SOAPJMSEndpoint SOAPJMSEndpoint.jar,META-INF/ejb-jar.xml lp1 "" "" "" ]] -MapResEnvRefToRes [[ SOAPJMSEndpoint SOAPJMSEndpoint SOAPJMSEndpoint.jar,META-INF/ejb-jar.xml jms/WebServicesReplyQCF javax.jms.QueueConnectionFactory jndi1 ]]]' )
Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/sibwsjmsepl.ear', ['-MapResEnvRefToRes', [['.*', '.*', '.*', '.*', '.*', 'jndi1']]])
MapResRefToEJB
Map resource references to resources. You must map each resource reference defined in the application to a resource. Use this option to provide missing data or to update a task.
The parameters for MapResRefToEJB include:
- EJBModule: Ejb1
- EJB: MailEJBObject
- URI: deplmtest.jar,META-INF/ejb-jar.xml
- Reference binding: jms/MyConnectionFactory
- Resource type: javax.jms.ConnectionFactory
- JNDI name: [jms/MyConnectionFactory]:
- Login Configuration Name: [null]: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
- Properties: []: Use this option to create a custom login configuration. The client can use JAAS to create a login design.
- Extended Data source properties: []: Use this option so that a data source that uses heterogeneous pooling can connect to a DB2 database. The pattern for the property is property1=value1+property2=value 2.
The DefaultPrincipalMapping login configuration is used by Java 2 Connectors (J2C) to map users to principals that are defined in the J2C authentication data entries. If the login.config.name is set to DefaultPrincipalMapping, a property is created with the name com.ibm.mapping.authDataAlias. The value of the property is set by the auth.props. If the login.config name is not set to DefaultPrincipalMapping, the auth.props can specify multiple properties. The string format is websphere:name= <name1>,value=<value1>,description=<desc1>. Specify multiple properties using the plus sign (+).
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are either missing information, or requiring an update.
Batch mode example usage
Jacl:
$AdminApp install myapp.ear {-MapResRefToEJB {{deplmtest.jar MailEJBObject deplmtest.jar,META-INF/ejb-jar.xml mail/MailSession9 javax.mail.Session jndi1 login1 authProps1 "clientApplicationInformation=new application"} {"JavaMail Sample WebApp" "" mtcomps.war,WEB-INF/web.xml mail/MailSession9 javax.mail.Session jndi2 login2 authProps2 ""}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-MapResRefToEJB {{deplmtest.jar .* .* .* .* jndi1 login1 authProps1 "clientApplicationInformation=new application"} {"JavaMail Sample WebApp" .* .* .* .* jndi2 login2 authProps2 ""}}}
If we use multiple values for extended data source properties, you must assign the values to a variable and use that variable for the property value. For example:
set s \"value1,value2\"
In the command substitution, reference the variable as shown in the following example:"clientApplicationInformation=value1,value2" with "clientapplication=$s"
Jython:
AdminApp.install('myapp.ear', ['-MapResRefToEJB', [['deplmtest.jar', 'MailEJBObject', 'deplmtest.jar,META-INF/ejb-jar.xml mail/MailSession9', 'javax.mail.Session', 'jndi1', 'login1', 'authProps1', 'clientApplicationInformation=new application+clientWorkstation=9.10.117.65'], ["JavaMail Sample WebApp", "", 'mtcomps.war,WEB-INF/web.xml', 'mail/MailSession9', 'javax.mail.Session', 'jndi2', 'login2', 'authProps2', '']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-MapResRefToEJB', [['deplmtest.jar', '.*', '.*', '.*', '.*', 'jndi1', 'login1', 'authProps1', 'clientApplicationInformation=new application+clientWorkstation=9.10.117.65'], ["JavaMail Sample WebApp", '', '.*', '.*', '.*', 'jndi2', 'login2', 'authProps2', '']]])
If we use multiple values for extended data source properties, surround the two values with double quote characters. For example:
'property1="value1,value2"+property2="value3,value4"'
MapRolesToUsers
Map users to roles. You must map each role defined in the application or module to a user or group from the domain user registry. We can specify multiple users or groups for a single role by separating them with a pipe (|). Use this option to provide missing data or to update a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install myapp.ear {-MapRolesToUsers {{"All Role" No Yes "" ""} {"Every Role" Yes No "" ""} {DenyAllRole No No user1 group1}}}
Jython:
AdminApp.install('myapp.ear', '[-MapRolesToUsers [["All Role" No Yes "" ""] ["Every Role" Yes No "" ""] [DenyAllRole No No user1 group1]]]')
where {{"All Role" No Yes "" ""} corresponds to the following:
MapRolesToUsers option descriptions. Map each role to a user or group.
Option Description "All Role" Represents the role name No Indicates to allow access to everyone (yes/no) Yes Indicates to allow access to all authenticated users (yes/no) "" Indicates the mapped users "" Indicates the mapped groups MapRunAsRolesToUsers
Map RunAs Roles to users. The enterprise beans that you install contain predefined RunAs roles. Enterprise beans that need to run as a particular role for recognition while interacting with another enterprise bean use RunAs roles. Use this option to provide missing data or to update a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install myapp.ear {-MapRunAsRolesToUsers {{UserRole user1 password1} {AdminRole administrator administrator}}}
Jython:
AdminApp.install('myapp.ear', '[-MapRunAsRolesToUsers [[UserRole user1 password1][AdminRole administrator administrator]]]')
MapSharedLibForMod
Assign shared libraries to application or every module. We can associate multiple shared libraries to applications and modules. The current contents of this option after running default bindings are the following:
- Module: xxx
- URI: META-INF/application.xml
- Shared libraries: <share libraries>
Use the taskInfo command of the AdminApp object to obtain information about the data needed for the application.
Jacl:
$AdminApp install app_server_root/installableApps/DynaCacheEsi.ear {-appname DynaCacheEsi -MapSharedLibForMod {{ DynaCacheEsi META-INF/application.xml sharedlib1 }{ DynaCacheEsi DynaCacheEsi.war,WEB-INF/web.xml sharedlib2 }}}
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/DynaCacheEsi.ear {-appname DynaCacheEsi -MapSharedLibForMod {{ .* .* sharedlib1 } { .* .* sharedlib2 }}}
Jython:
AdminApp.install('app_server_root/installableApps/DynaCacheEsi.ear', '[ -MapSharedLibForMod [[ DynaCacheEsi META-INF/application.xml sharedlib1 ] [ DynaCacheEsi DynaCacheEsi.war,WEB-INF/web.xml sharedlib2 ]]]' )
Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/DynaCacheEsi.ear', '[ -MapSharedLibForMod [[ .* .* sharedlib1 ][ .* .* sharedlib2 ]]]' )
MapWebModToVH
Select virtual hosts for web modules. Specify the virtual host where to install the web modules that are contained in the application. We can install web modules on the same virtual host, or disperse them among several hosts. Use this option to provide missing data or to update a task.
Use AdminApp taskInfo to obtain information. Provide data for rows or entries that are missing information, or require an update.
Jacl:
$AdminApp install app_server_root/installableApps/DynaCacheEsi.ear {-appname DynaCacheEsi -MapWebModToVH {{ DynaCacheEsi DynaCacheEsi.war,WEB-INF/web.xml default_host }}}
Jacl with pattern matching:
$AdminApp install app_server_root/installableApps/DynaCacheEsi.ear {-MapWebModToVH {{ .* .* default_host }}}
Jython:
AdminApp.install('app_server_root/installableApps/DynaCacheEsi.ear', '[-MapWebModToVH [[ DynaCacheEsi DynaCacheEsi.war,WEB-INF/web.xml default_host ]]]')
Jython with pattern matching:
AdminApp.install('app_server_root/installableApps/DynaCacheEsi.ear', ['-MapWebModToVH', [['.*', '.*', 'default_host']]])
MetadataCompleteForModules
Enable each Java EE 5 or later module to write out the complete deployment descriptor, including deployment information from annotations. Then the system marks the deployment descriptor for the module as complete.
If your Java EE 5 or later application uses annotations and a shared library, do not use this option. When the application uses annotations and a shared library, setting the metadata-complete attribute to true causes the product to incorrectly represent an @EJB annotation in the deployment descriptor as <ejb-ref> rather than <ejb-local-ref>. For web modules, setting the metadata-complete attribute to true might cause InjectionException errors. If set the metadata-complete attribute to true, avoid errors by not using a shared library, by placing the shared library in either the classes or lib directory of the application server, or by fully specifying the metadata in the deployment descriptors.
The current contents of this option after running default bindings are the following:
- Module: EJBDD_1.jar
- URI: EJBDD_1.jar,META-INF/ejb-jar.xml
- Lock deployment descriptor: [false]:
- Module: EJBNoDD_2.jar
- URI: EJBNoDD_2.jar,META-INF/ejb-jar.xml
- Lock deployment descriptor: [false]:
Use AdminApp taskInfo to obtain information.
Jacl:
$AdminApp install myapp.ear {-MetadataCompleteForModules {{EJBDD_1.jar EJBDD_1.jar,META-INF/ejb-jar.xml false}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-MetadataCompleteForModules {{.* EJBDD_1.jar,.* false}}}
Jython:
AdminApp.install('myapp.ear', ['-MetadataCompleteForModules', [['EJBDD_1,jar', 'EJBDD_1.jar,META-INF/ejb-jar.xml', 'false']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-MetadataCompleteForModules', [['.*', 'EJBDD_1.jar,.*', 'false']]]
ModuleBuildID
Display the build identifier of a module in an application EAR file. We cannot modify this option because it is read-only. This option returns the build information for a module if we have specified the build identifer in the MANIFEST.MF of a module or application EAR file. The build information consists of the module name, module URI, and build identifier.
The current contents of the option after running default bindings resemble the following:
- Module: CacheClient
- URI: CacheClient.jar,META-INF/application-client.xml
- Build ID: alpha
- Module: MailConnector
- URI: Mail.rar,META-INF/ra.xml
- Build ID: abc
- Module: CacheWeb1
- URI: CacheWeb1.war,WEB-INF/web.xml
- Build ID: alpha
- Module: JspWeb1
- URI: JspWeb1.war,WEB-INF/web.xml
- Build ID: v1.0
- Module: Servlet
- URI: Servlet.war,WEB-INF/web.xml
- Build ID: 0.5
Jython:
print AdminApp.taskInfo('/temp/Cache2.ear', 'ModuleBuildID')
noallowDispatchRemoteInclude
Disable the enterprise application that dispatches includes to resources across web modules in different Java virtual machines in a managed node environment through the standard request dispatcher mechanism.
noallowPermInFilterPolicy
Do not continue with the application deployment process when the application contains policy permissions that are in the filter policy. This option is the default setting and does not require a value.
noallowServiceRemoteInclude
Disable the enterprise application that services an include request from an enterprise application that has the allowDispatchRemoteInclude option set to true.
node
Node name to install or update an entire application or to update an application in order to add a new module. To update an entire application, this option only applies if the application contains a new module that does not exist in the installed application.
Batch mode example usage
Jacl:
$AdminApp install "/myapp.ear" {-node nodeName}
Jython:
AdminApp.install('/myapp/myapp.ear', '[-node nodeName]')
nocreateMBeansForResources
MBeans are not created for all resources, such as servlets, JSP files, and enterprise beans, that are defined in an application when the application starts on a deployment target. This option is the default setting and it does not require a value.
nodeployejb
Do not run the EJBDeploy tool during installation. This option is the default setting and does not require a value.
nodeployws
Do not deploy web services during installation. This option is the default setting and does not require a value.
nodistributeApp
Application management component does not distribute application binaries. This option does not require a value. The default setting is the distributeApp option.
noenableClientModule
Do not deploy client modules. This option does not require a value. This is the default. The default is not to deploy client modules. Use the enableClientModule option to deploy client modules.
noreloadEnabled
Disable class reloading. This option is the default setting and does not require a value. To specify the file system of the application be scanned for updated files so that changes reload dynamically, use the reloadEnabled option.
nopreCompileJSPs
Do not precompile JSP files. This option is the default setting and does not require a value.
noprocessEmbeddedConfig
System should ignore the embedded configuration data that is included in the application. This option does not require a value. If the application EAR file does not contain embedded configuration data, the noprocessEmbeddedConfig option is the default setting. Otherwise, the default setting is the processEmbeddedConfig option.
nouseAutoLink
Do not to use the useAutoLink option, and not to automatically resolve EJB references from EJB module versions prior to EJB 3.0 and from web module versions that are prior to v2.4.
nouseMetaDataFromBinary
Metadata used at run time, for example, deployment descriptors, bindings, extensions, and so on, come from the configuration repository. This option is the default setting and does not require a value. Use this option to indicate the metadata used at run time comes from the EAR file.
nousedefaultbindings
Do not use default bindings for installation. This option is the default setting and does not require a value.
novalidateSchema
Do not validate the deployment descriptors against published Java EE deployment descriptor schemas. This option does not require a value. This is the default. The default is not to validate deployment descriptors.
operation
Operation to perform. This option only applies to the update or updateInteractive commands. The valid values include:
- add - Adds new content.
- addupdate - Adds or updates content based on the existence of content in the application.
- delete - Deletes content.
- update - Updates existing content.
The operation option is required if the content type is file or modulefile. If the value of the content type is app, the value of the operation option must be update.
The contenturi option is ignored when the content type is app.
The following examples show how to use the options for the update command to update an entire deployed enterprise application:
Using Jacl:
$AdminApp update "IVT Application" app {-operation update -contents app_server_root/installableApps/ivtApp.ear}
Jython string:
AdminApp.update('IVT Application', 'app', '[ -operation update -contents app_server_root/installableApps/ivtApp.ear ]' )
The following examples show how to use the options for the update command to update a single file in a deployed application:
Using Jacl:
$AdminApp update app1 file {-operation update -contents /apps/app1/my.xml -contenturi app1.jar/my.xml}
Jython string:
>AdminApp.update('app1', 'file', '[-operation update -contents /apps/app1/my.xml -contenturi app1.jar/my.xml]')
Jython list:
AdminApp.update('app1', 'file', ['-operation', 'update', '-contents', '/apps/app1/my.xml', '-contenturi', app1.jar/my.xml'])
where AdminApp is the scripting object, update is the command, app1 is the name of the application to update, file is the content type, operation is an option of the update command, update is the value of the operation option, contents is an option of the update command, /apps/app1/my.xml is the value of the contents option, contenturi is an option of the update command, app1.jar/my.xml is the value of the contenturi option.
processEmbeddedConfig
Process the embedded configuration data that is included in the application. This option does not require a value. If the application EAR file contains embedded configuration data, this option is the default setting. If not, the default setting is the nonprocessEmbeddedConfig option.
This setting affects installation of enhanced EAR files. An enhanced EAR file results when we export an installed application. Enhanced EAR files have an embedded configuration that consists of files such as resource.xml and variables.xml. This option loads an embedded configuration to the application scope from the EAR file.
If you exported the application from a cell other than the current cell and did not specify the $(CELL) variable for the installed.ear.destination option when first installing the application, use the nonprocessEmbeddedConfig option to expand the enhanced EAR file in the profile_root/installedApps/current_cell_name directory. Otherwise, use this processEmbeddedConfig option to expand the enhanced EAR file in the profile_root/installedApps/original_cell_name directory, where original_cell_name is the cell on which the application was first installed. If you specified the $(CELL) variable for the installed.ear.destination option when we first installed the application, installation expands the enhanced EAR file in the profile_root/installedApps/current_cell_name directory.
preCompileJSPs
Precompile the JSP files. This option does not require a value. Default is nopreCompileJSPs. To precompile JSP files, specify it as a part of installation. The default is not to precompile JSP files. The preCompileJSPs option is ignored during deployment and JSP files are not precompiled. The flag is set automatically using assembly tools.
reloadEnabled
File system of the application will be scanned for updated files so that changes reload dynamically. If this option is enabled and if application classes are changed, then the application is stopped and restarted to reload updated classes. This option is not the default setting and does not require a value. The default setting is the noreloadEnabled option.
reloadInterval
Time period in seconds the file system of the application will be scanned for updated files. Valid range is greater than zero. The default is three seconds.
SharedLibRelationship
Assign assets or composition unit IDs as shared libraries for each Java EE module.
The current contents of the option after running default bindings include:
- Module: EJB3BNDBean.jar
- URI: EJB3BNDBean.jar,META-INF/ejb-jar.xml
- Relationship IDs: specify asset or composition unit IDs, such as [WebSphere:cuname=sharedLibCU1,cuedition=1.0] or WebSphere:assetname=sharedLibAsset1.jar
- Composition Unit names: optionally specify composition unit names for asset relationship IDs. The system uses the same name as the asset if we do not specify a composition unit name. []
- Match target: [Yes]:
We can specify assets and composition unit IDs in the relationship, as the following guidelines explain:
- If we specify an asset, the system creates a composition unit with that asset in the same business level application where the Java EE application belongs.
- If we specify a value for the composition unit names, then the system position matches each name with the corresponding relationship IDs values.
- If the relationship ID is a composition unit ID, then the system ignores the corresponding composition unit name.
- If the relationship ID is an asset ID, then the system creates the composition unit using the corresponding composition unit name.
To specify more than one asset or composition unit ID, separate each value with the plus sign character (+).
When using the edit command for the Java EE application, we can override the relationship with a new set of composition unit relationship IDs, or we can add or remove existing composition unit relationships. We cannot specify an asset relationship when using the edit command. Specify the first character of the composition unit ID as the plus sign character (+) to add to the relationship, or specify the number sign character (#) to remove the composition unit ID from existing relationships. For example, the +cuname=cu2.zip composition unit syntax adds the cu2 composition unit to the relationship. The #cuname=cu1.zip+cuname=cu2.zip composition unit syntax removes the cu1 and cu2 composition units from the relationship.
Batch mode example usage
Jacl:
$AdminApp install myapp.ear {-SharedLibRelationship {{EJB3BNDBean.jar EJB3BNDBean.jar,META-INF/ejb-jar.xml WebSphere:cuname=sharedLibCU1 "" Yes}}}
Jacl with pattern matching:
$AdminApp install myapp.ear {-SharedLibRelationship {{.* EJB3BNDBean.jar,.* WebSphere:cuname=sharedLibCU1 "" Yes}}}
Jython:
AdminApp.install('myapp.ear', ['-SharedLibRelationship', [['EJB3BNDBean,jar', 'EJB3BNDBean.jar,META-INF/ejb-jar.xml', 'WebSphere:cuname=sharedLibCU1,' '', 'Yes']]])
Jython with pattern matching:
AdminApp.install('myapp.ear', ['-SharedLibRelationship', [['.*', 'EJB3BNDBean.jar,.*', 'WebSphere:cuname=sharedLibCU1', '', 'Yes']]]
server
Name of the server on which to perform one of the following actions:
- Install a new application.
- Replace an existing application with an updated version of that application. In this situation, the server option is meaningful only if the updated version of the application contains a new module that does not exist in the already installed version of the application.
- Add a new module to an existing application.
Jacl:
$AdminApp install app_server_root/installableApps/DynaCacheEsi.ear {-server server1}
Jython:
AdminApp.install('app_server_root/installableApps/DynaCacheEsi.ear', '[-server server1]')
target
Target for the installation functions of the AdminApp object. The following is an example of a target option: WebSphere:cell=mycell,node=mynode,server=myserver
We can specify multiple targets by delimiting them with a plus (+) sign. By default, the targets specified when we install or edit an application replace the existing target definitions in the application. We can use a leading plus (+) sign to add targets or a negative (-) sign to remove targets without having to specify the targets that are not changed.
Batch mode example usage
The following example specifies server1 as the target server for the application installation:
Jacl:
$AdminApp install app_server_root/installableApps/DynaCacheEsi.ear {-appname MyApp -target WebSphere:cell=myCell,node=myNode,server=server1}
Jython:
AdminApp.install("app_server_root/installableApps/DynaCacheEsi.ear", ["-appname", "MyApp", "-target", "WebSphere:cell=myCell,node=myNode,server=server1"])
update
Update the installed application with a new version of the EAR file. This option does not require a value.
The application to update, which is specified by the appname option, must already be installed in the WebSphere Application Server configuration. The update action merges bindings from the new version with the bindings from the old version, uninstalls the old version, and installs the new version. The binding information from new version of the EAR file or module is preferred over the corresponding one from the old version. If any element of binding is missing in the new version, the corresponding element from the old version is used.
update.ignore.new
Specify that during the update action, binding information from the old version of the application or module is preferred over the corresponding binding information from the new version. If any element of the binding does not exist in the old version, the element from the new version is used. That is, bindings from the new version of the application or module are ignored if a binding exists in the old version. Otherwise, the new bindings are honored and not ignored. This option does not require a value.
This option applies only if we specify one of the following items:
- The update option for the install command.
- The modulefile or app as the content type for the update command.
update.ignore.old
Specify that during the update action, the binding information from the new version of the application or module is preferred over the corresponding binding information from the old version. The bindings from the old version of the application or module are ignored. This option does not require a value. This option applies only if we specify one of the following items:
- The update option for the install command.
- The modulefile or app as the content type for the update command.
useAutoLink
Automatically resolve EJB references from EJB module versions prior to EJB 3.0, and from web module versions that are prior to v2.4. If you enable the useAutoLink option, we can optionally specify the JNDI name for MapEJBRefToEJB option. Each module in the application must share one common target to enable autolink support.
Batch mode example usage
Jacl:
$AdminApp install /myapp.ear {-useAutoLink}
Jython:
AdminApp.install('myapp.ear','[-useAutoLink]')
usedefaultbindings
Specify to use default bindings for installation. This option does not require a value. The default setting is nousedefaultbindings.
To use the existing listener port instead of using or creating a new activation specification, determine whether the EJB JAR version is lower than 2.1. The system automatically creates and uses an activation specification when we specify the -usedefaultbindings option to deploy an application. If an activation specification exists, the system ignores the listener port, and instead uses the activation specification. To deploy an application with an EJB JAR version greater than or equal to 2.1 using the defined listener ports instead of a new activation specification, set the com.ibm.websphere.management.application.dfltbndng.mdb.preferexisting system property to true in the wsadmin.properties file in the properties directory of the profile of interest.
useMetaDataFromBinary
Specify the metadata used at run time, for example, deployment descriptors, bindings, extensions, and so on, come from the EAR file. This option does not require a value. Default is nouseMetaDataFromBinary, which means the metadata used at run time comes from the configuration repository.
validateinstall
Specify the level of application installation validation. Valid option values include:
- off - Specifies no application deployment validation. This value is the default.
- warn - Performs application deployment validation and continues with the application deployment process even when reported warnings or error messages exist.
- fail - Performs application deployment validation and does not to continue with the application deployment process when reported warnings or error messages exist.
validateSchema
Validate the deployment descriptors against published Java EE deployment descriptor schemas. When this application deployment option is selected, the product analyzes each deployment descriptor to determine the Java EE specification version for the deployment descriptor, selects the appropriate schema, and then checks the deployment descriptor against the Java EE deployment descriptor schema. Validation errors result in error messages.
This option does not require a value. Default is novalidateSchema. By default, the validateSchema option is ignored during deployment and the product does not validate deployment descriptors.
verbose
Cause additional messages to display during installation. This option does not require a value.
WebServicesClientBindDeployedWSDL
Identify the client Web service that you are modifying. The scoping fields include: Module, EJB, and web service. The single mutable value for this task is the deployed WSDL file name. It indicates the Web Services Description Language (WSDL) the client uses.
The Module field identifies the enterprise or web application within the application. If the module is an enterprise bean , the EJB field identifies a particular enterprise bean within the module. The web service field identifies the web service within the enterprise bean or the web application module. This identifier corresponds to the wsdl:service attribute in the WSDL file, prepended with service/, for example, service/WSLoggerService2.
The deployed WSDL attribute names a WSDL file relative to the client module. An example of a deployed WSDL for a web application is the following: WEB-INF/wsdl/WSLoggerService.
Jacl:
$AdminApp install WebServicesSamples.ear {-WebServicesClientBindDeployedWSDL {{AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 META-INF/wsdl/DeployedWsdl1.wsdl}}}
Jacl with pattern matching:
$AdminApp install WebServicesSamples.ear {-WebServicesClientBindDeployedWSDL {{.* .* .* META-INF/wsdl/DeployedWsdl1.wsdl}}}
To install the WebServicesSamples.ear sample, which is in installableApps directory of SCA samples, specify the BindJndiForEJBNonMessageBinding and MapWebModToVH options as well as the WebServicesClientBindDeployedWSDL option:
$AdminApp install WebServicesSamples.ear { -WebServicesClientBindDeployedWSDL {{AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 META-INF/wsdl/DeployedWsdl1.wsdl}} -BindJndiForEJBNonMessageBinding {{ "Stock Quote Sample EJB" com_ibm_websphere_samples_webservices_stock_StockQuote StockQuote.jar,META-INF/ejb-jar.xml jndi1 "" "" } { "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookW2JE AddressBookW2JE.jar,META-INF/ejb-jar.xml jndi2 "" "" }{ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookJ2WE AddressBookJ2WE.jar,META-INF/ejb-jar.xml jndi3 "" "" }} -MapWebModToVH {{ "module_name" web_services.war,WEB-INF/web.xml default_host } { "AddressBook Bottom Up Java Bean" AddressBookJ2WB.war,WEB-INF/web.xml default_host } { "AddressBook Top Down Java Bean" AddressBookW2JB.war,WEB-INF/web.xml default_host }} }
Jython:
AdminApp.install('WebServicesSamples.ear', '[-WebServicesClientBindDeployedWSDL [[AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 META-INF/wsdl/DeployedWsdl1.wsdl]]]')
To install the WebServicesSamples.ear sample, specify the BindJndiForEJBNonMessageBinding and MapWebModToVH options as well as the WebServicesClientBindDeployedWSDL option:
$AdminApp install WebServicesSamples.ear', '[ -WebServicesClientBindDeployedWSDL [[ AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 META-INF/wsdl/DeployedWsdl1.wsdl ]] -BindJndiForEJBNonMessageBinding [[ "Stock Quote Sample EJB" com_ibm_websphere_samples_webservices_stock_StockQuote StockQuote.jar,META-INF/ejb-jar.xml jndi1 "" "" ] [ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookW2JE AddressBookW2JE.jar,META-INF/ejb-jar.xml jndi2 "" "" ][ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookJ2WE AddressBookJ2WE.jar,META-INF/ejb-jar.xml jndi3 "" "" ]] -MapWebModToVH [[ "module_name" web_services.war,WEB-INF/web.xml default_host ] [ "AddressBook Bottom Up Java Bean" AddressBookJ2WB.war,WEB-INF/web.xml default_host ] [ "AddressBook Top Down Java Bean" AddressBookW2JB.war,WEB-INF/web.xml default_host ]]]' )
Jython with pattern matching:
AdminApp.install('WebServicesSamples.ear', ['-WebServicesClientBindDeployedWSDL', ['.*', '.*', '.*', 'META-INF/wsdl/DeployedWsdl1.wsdl']]])
WebServicesClientBindPortInfo
Identify the port of a client web service that you are modifying. The scoping fields include: Module, EJB, web service and Port. The mutable values for this task include: Sync Timeout, BasicAuth ID, BasicAuth Password, SSL Config, and Overridden Endpoint URI. The basic authentication and Secure Sockets Layer (SSL) fields affect transport level security, not Web Services Security.
Jacl:
$AdminApp install WebServicesSamples.ear {-WebServicesClientBindPortInfo {{AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS 3000 newHTTP_ID newHTTP_pwd sslAliasConfig http://yunus:9090/WSLoggerEJB/services/WSLoggerJMS}}}
To install the WebServicesSamples.ear sample, specify the BindJndiForEJBNonMessageBinding and MapWebModToVH options as well as the WebServicesClientBindPortInfo option:
$AdminApp install WebServicesSamples.ear { -WebServicesClientBindPortInfo {{AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS 3000 newHTTP_ID newHTTP_pwd sslAliasConfig http://yunus:9090/WSLoggerEJB/services/WSLoggerJMS}} -BindJndiForEJBNonMessageBinding {{ "Stock Quote Sample EJB" com_ibm_websphere_samples_webservices_stock_StockQuote StockQuote.jar,META-INF/ejb-jar.xml jndi1 "" "" } { "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookW2JE AddressBookW2JE.jar,META-INF/ejb-jar.xml jndi2 "" "" }{ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookJ2WE AddressBookJ2WE.jar,META-INF/ejb-jar.xml jndi3 "" "" }} -MapWebModToVH {{ "module_name" web_services.war,WEB-INF/web.xml default_host } { "AddressBook Bottom Up Java Bean" AddressBookJ2WB.war,WEB-INF/web.xml default_host } { "AddressBook Top Down Java Bean" AddressBookW2JB.war,WEB-INF/web.xml default_host }} }
Jacl with pattern matching:
$AdminApp install WebServicesSamples.ear {-WebServicesClientBindPortInfo {{.* .* .* .* 3000 newHTTP_ID newHTTP_pwd sslAliasConfig http://yunus:9090/WSLoggerEJB/services/WSLoggerJMS}}}
Jython:
AdminApp.install('WebServicesSamples.ear', '[-WebServicesClientBindPortInfo [[AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS 3000 newHTTP_ID newHTTP_pwd sslAliasConfig http://yunus:9090/WSLoggerEJB/services/WSLoggerJMS]]]')
To install the WebServicesSamples.ear sample, specify the BindJndiForEJBNonMessageBinding and MapWebModToVH options as well as the WebServicesClientBindPortInfo option:
AdminApp.install('WebServicesSamples.ear', '[ -WebServicesClientBindPortInfo [[AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS 3000 newHTTP_ID newHTTP_pwd sslAliasConfig http://yunus:9090/WSLoggerEJB/services/WSLoggerJMS ]] -BindJndiForEJBNonMessageBinding [[ "Stock Quote Sample EJB" com_ibm_websphere_samples_webservices_stock_StockQuote StockQuote.jar,META-INF/ejb-jar.xml jndi1 "" "" ] [ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookW2JE AddressBookW2JE.jar,META-INF/ejb-jar.xml jndi2 "" "" ][ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookJ2WE AddressBookJ2WE.jar,META-INF/ejb-jar.xml jndi3 "" "" ]] -MapWebModToVH [[ "module_name" web_services.war,WEB-INF/web.xml default_host ] [ "AddressBook Bottom Up Java Bean" AddressBookJ2WB.war,WEB-INF/web.xml default_host ] [ "AddressBook Top Down Java Bean" AddressBookW2JB.war,WEB-INF/web.xml default_host ]]]' )
Jython with pattern matching:
AdminApp.install('WebServicesSamples.ear', ['-WebServicesClientBindPortInfo', [['.*', '.*', '.*', '.*', '3000', 'newHTTP_ID', 'newHTTP_pwd', 'sslAliasConfig', 'http://yunus:9090/WSLoggerEJB/services/WSLoggerJMS']]])
WebServicesClientBindPreferredPort
Associate a preferred port (implementation) with a port type (interface) for a client web service. The immutable values identify a port type of the client web service that you are modifying. The scoping fields include: Module, EJB, Web service and Port Type. The mutable value for this task is Port.
- Port Type - QName ("{namespace} localname") of a port type defined by a wsdl:portType attribute in the WSDL file that identifies an interface.
- Port - QName of a port defined by a wsdl:port attribute within a wsdl:service attribute in a WSDL file that identifies an implementation that has preference.
Jacl:
$AdminApp install WebServicesSamples.ear {-WebServicesClientBindPreferredPort {{AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS WSLoggerJMSPort}}}
To install the WebServicesSamples.ear sample, specify the BindJndiForEJBNonMessageBinding and MapWebModToVH options as well as the WebServicesClientBindPreferredPort option:
$AdminApp install WebServicesSamples.ear {-WebServicesClientBindPreferredPort {{AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS WSLoggerJMSPort}} -BindJndiForEJBNonMessageBinding {{ "Stock Quote Sample EJB" com_ibm_websphere_samples_webservices_stock_StockQuote StockQuote.jar,META-INF/ejb-jar.xml jndi1 "" "" } { "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookW2JE AddressBookW2JE.jar,META-INF/ejb-jar.xml jndi2 "" "" }{ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookJ2WE AddressBookJ2WE.jar,META-INF/ejb-jar.xml jndi3 "" "" }} -MapWebModToVH {{ "module_name" web_services.war,WEB-INF/web.xml default_host } { "AddressBook Bottom Up Java Bean" AddressBookJ2WB.war,WEB-INF/web.xml default_host } { "AddressBook Top Down Java Bean" AddressBookW2JB.war,WEB-INF/web.xml default_host }} }
Jacl with pattern matching:
$AdminApp install WebServicesSamples.ear {-WebServicesClientBindPreferredPort {{.* .* .* .* WSLoggerJMSPort}}}
Jython:
AdminApp.install('WebServicesSamples.ear', '[-WebServicesClientBindPreferredPort [[AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS WSLoggerJMSPort]]]')
To install the WebServicesSamples.ear sample, specify the BindJndiForEJBNonMessageBinding and MapWebModToVH options as well as the WebServicesClientBindPreferredPort option:
AdminApp.install('WebServicesSamples.ear', '[ -WebServicesClientBindPreferredPort [[AddressBookW2JE.jar AddressBookW2JE service/WSLoggerService2 WSLoggerJMS WSLoggerJMSPort ]] -BindJndiForEJBNonMessageBinding [[ "Stock Quote Sample EJB" com_ibm_websphere_samples_webservices_stock_StockQuote StockQuote.jar,META-INF/ejb-jar.xml jndi1 "" "" ] [ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookW2JE AddressBookW2JE.jar,META-INF/ejb-jar.xml jndi2 "" "" ][ "Address Book Sample EJB" com_ibm_websphere_samples_webservices_addr_AddressBookJ2WE AddressBookJ2WE.jar,META-INF/ejb-jar.xml jndi3 "" "" ]] -MapWebModToVH [[ "module_name" web_services.war,WEB-INF/web.xml default_host ] [ "AddressBook Bottom Up Java Bean" AddressBookJ2WB.war,WEB-INF/web.xml default_host ] [ "AddressBook Top Down Java Bean" AddressBookW2JB.war,WEB-INF/web.xml default_host ]]]' )
Jython with pattern matching:
AdminApp.install('WebServicesSamples.ear', ['-WebServicesClientBindPreferredPort', [['.*', '.*', '.*', '.*', 'WSLoggerJMSPort']]])
WebServicesServerBindPort
Set two attributes of a web service port. The immutable values identify the port of a web service that you are modifying. The scope fields include: Module, Web service and Port. The mutable values include: WSDL Service Name, and Scope.
The scope determines the life cycle of implementing the Java bean. The valid values include: Request (new instance for each request), Application (one instance for each web-app), and Session (new instance for each HTTP session).
The scope attribute does not apply to web services that a JMS transport. The scope attribute does not apply to enterprise beans.
The WSDL service name identifies a service when more than one service has the same port name. The WSDL service name is represented as a QName string, for example, {namespace}localname .
Jacl:
$AdminApp install WebServicesSamples.ear {-WebServicesServerBindPort {{AddressBookW2JE.jar service/WSLoggerService2 WSLoggerJMS {} Session}}}
Jacl with pattern matching:
$AdminApp install WebServicesSamples.ear {-WebServicesServerBindPort {{.* WSClientTestService WSClientTest Request} {.* StockQuoteService StockQuote Application} {.* StockQuoteService StockQuote2 Session}}}
Jython:
AdminApp.install('WebServicesSamples.ear', '[-WebServicesServerBindPort [[AddressBookW2JE.jar service/WSLoggerService2 WSLoggerJMS "" Session]]]')
Jython with pattern matching:
AdminApp.install('WebServicesSamples.ear', ['-WebServicesServerBindPort', [['.*', 'WSClientTestService', 'WSClientTest', 'Request'], ['.*', 'StockQuoteService', 'StockQuote', 'Application'], ['.*', 'StockQuoteService', 'StockQuote2', 'Session']]])
WebServicesClientCustomProperty
Configure the name value parameter for the description of the client bind file of a web service. The immutable values identify the port of the web service that you are modifying. The scope fields include: Module, Web service, and Port. The mutable values include: name and value.
The format of the name and value values include a string that represents multiple name and value pairs using the + character as a separator. For example, name string = "n1+n2+n3" value string = "v1+v2+v3" yields name/value pairs: {{"n1" "v1"}, {"n2" "v2"}, {"n3" " v3"}},
Jacl:
$AdminApp edit WebServicesSamples {-WebServicesClientCustomProperty {{join.jar com_ibm_ws_wsfvt_test_multiejbjar_client_WSClientTest service/StockQuoteService STockQuote propname1 propValue1} {ejbclientonly.jar Exchange service/STockQuoteService STockQuote propname2 propValue2}}}
Jacl with pattern matching:
$AdminApp edit WebServicesSamples {-WebServicesClientCustomProperty {{join.jar com_ibm_ws_wsfvt_test_multiejbjar_client_WSClientTest .* .* propname1 propValue1} {ejbclientonly.jar Exchange .* .* propname2 propValue2}}}
Jython:
AdminApp.edit('WebServicesSamples', ['-WebServicesClientCustomProperty', [['join.jar', 'com_ibm_ws_wsfvt_test_multiejbjar_client_WSClientTest', 'service/StockQuoteService', 'STockQuote', 'propname1', 'propValue1'], ['ejbclientonly.jar', 'Exchange', 'service/STockQuoteService', 'STockQuote', 'propname2', 'propValue2']]])
Jython with pattern matching:
AdminApp.edit('WebServicesSamples', ['-WebServicesClientCustomProperty', [['join.jar', 'com_ibm_ws_wsfvt_test_multiejbjar_client_WSClientTest', '.*', '.*', 'propname1', 'propValue1'], ['ejbclientonly.jar', 'Exchange', '.*', '.*', 'propname2', 'propValue2']]])
WebServicesServerCustomProperty
Configure the name value parameter for the description of the server bind file of a web service. The scoping fields include the following: Module, EJB, and web service. The mutable values for this task include: name and value.
The format of the these values include a string that represents multiple name and value pairs using the plus (+) character as a separator. For example, name string = "n1+n2+n3" value string = "v1+v2+v3" yields name and value pairs: {{"n1" "v1"}, {"n2" "v2"}, {"n3" " v3"}}.
Jacl:
$AdminApp edit WebServicesSamples {-WebServicesServerCustomProperty {{AddressBookW2JE.jar AddressBookService AddressBook com.ibm.websphere.webservices.http.responseContentEncoding deflate}}}
Jacl with pattern matching:
$AdminApp edit WebServicesSamples {-WebServicesServerCustomProperty {{.* .* .* com.ibm.websphere.webservices.http.responseContentEncoding deflate}}}
Jython:
AdminApp.edit ( 'WebServicesSamples', '[ -WebServicesServerCustomProperty [[AddressBookW2JE.jar AddressBookService AddressBook com.ibm.websphere.webservices.http.responseContentEncoding deflate]]]')
Jython with pattern matching:
AdminApp.edit ( 'WebServicesSamples', ['-WebServicesServerCustomProperty', [['.*', '.*', '.*', 'com.ibm.websphere.webservices.http.responseContentEncoding', 'deflate']]])
Subtopics
Related concepts:
Usage table for the options of the AdminApp object install, installInteractive, update, updateInteractive, edit, and editInteractive commands using wsadmin.sh
Development and assembly tools
Pattern matching using wsadmin.sh
Samples, v8.5 information center
Example: Obtain option information for AdminApp object commands using wsadmin.sh
Commands for the AdminApp object using wsadmin.sh