[Fix Pack 9 or later]

Working with web module deployment properties files

You can use properties files to modify web module deployment properties. A web module must conform to Java™ Platform, Enterprise Edition (Java EE) specifications.

Before you begin

Determine the changes that you want to make to your web module deployment configuration.

Start the wsadmin scripting tool. To start wsadmin using the Jython language, run the wsadmin -lang Jython command from the bin directory of the server profile.

About this task

Using a properties file, you can modify a web module deployment object.

Run administrative commands using wsadmin to change a properties file for a web module deployment, validate the properties, and apply them to your configuration.

Table 1. Actions for web module deployment properties files. You can modify web module deployment properties.
Action Procedure
create Not applicable
modify Edit the properties file and then run the applyConfigProperties command.
delete Not applicable
create Property Not applicable
delete Property Not applicable

Optionally, you can use interactive mode with the commands:

AdminTask.command_name('-interactive')

Procedure

  1. Edit a web module deployment configuration.

    For example, specify properties such as the following for a WebModuleDeployment instance:

    #
    # Header
    #
    ResourceType=WebModuleDeployment
    ImplementingResourceType=Application
    ResourceId=Cell=!{cellName}:Deployment=!{applicationName}:ApplicationDeployment=:WebModuleDeployment=uri#myWebModule.war
    #
    
    #
    #Properties
    #
    startingWeight=10000 #integer,required,default(1)
    deploymentId=1 #required
    classloaderMode=PARENT_FIRST #ENUM(PARENT_FIRST|PARENT_LAST),default(PARENT_FIRST)
    altDD=null
    uri=myWebModule.war #required
    applicationDeployment=Cell=!{cellName}:Deployment=!{applicationName2}:ApplicationDeployment=ID#ApplicationDeployment_1183122148265 #ObjectName(ApplicationDeployment)
    
    #
    # Header ( WebDeployment ClassLoader)
    #
    ResourceType=Classloader
    ImplementingResourceType=Application
    ResourceId=Cell=!{cellName}:Deployment=!{applicationName}:ApplicationDeployment=:WebModuleDeployment=uri#myWebModule.war:Classloader=
    #
    
    #
    #Properties
    #
    mode=PARENT_FIRST #ENUM(PARENT_FIRST|PARENT_LAST),default(PARENT_FIRST)
    
    
    #
    # Header ( WebDeployment ClassLoader's LibraryRef )
    #
    ResourceType=LibraryRef
    ImplementingResourceType=Application
    ResourceId=Cell=!{cellName}:Deployment=!{applicationName}:ApplicationDeployment=:WebModuleDeployment=uri#myWebModule.war:Classloader=:LibraryRef=libraryName#myLibName
    #
    
    #
    #Properties
    #
    libraryName=myLibName 
    sharedClassLoader=null
    
    #
    EnvironmentVariablesSection
    #
    #
    #Environment Variables
    cellName=myCell04
    applicationName=myApp
  2. Run the applyConfigProperties command to change a web module deployment configuration.

    Running the applyConfigProperties command applies the properties file to the configuration. In this Jython example, the optional -reportFileName parameter produces a report named report.txt:

    AdminTask.applyConfigProperties(['-propertiesFileName myObjectType.props -reportFileName report.txt '])

Results

You can use the properties file to configure and manage the web module deployment object and its properties.

What to do next

Save the changes to your configuration.




In this information ...


IBM Redbooks, demos, education, and more

(Index)

Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

Task topic    

Terms of Use | Feedback

Last updated: Oct 21, 2010 5:30:17 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=compass&product=was-nd-iseries&topic=txml_config_prop_webdeploymt
File name: txml_config_prop_webdeploymt.html