+

Search Tips   |   Advanced Search

Work with EJB module deployment properties files

Use properties files to modify EJB module deployment properties. An EJB module must conform to Java EE specifications.

Determine the changes to make to your EJB module deployment configuration.

Start the wsadmin scripting tool...

Use a properties file to modify an EJB module deployment object.

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

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, we can use interactive mode with the commands:

AdminTask.command_name('-interactive')


Tasks

  1. Edit an EJB module deployment configuration.

    For example, specify properties such as the following for an EJBModuleDeployment instance:

    #
    # Header
    #
    ResourceType=EJBModuleDeployment
    ImplementingResourceType=Application
    ResourceId=Cell=!{cellName}:Deployment=!{applicationName}:ApplicationDeployment=:
    EJBModuleDeployment=uri#myEjb.jar
    #
    
    #
    #Properties
    #
    startingWeight=5000 #integer,required,default(1)
    deploymentId=1 #required
    altDD=null
    uri=myEJB.jar #required
    applicationDeployment=Cell=!{cellName}:Deployment=!{applicationName}:ApplicationDeployment= 
    #ObjectName(ApplicationDeployment)
    
    #
    # Header ( EJBDeployment ClassLoader)
    #
    ResourceType=Classloader
    ImplementingResourceType=Application
    ResourceId=Cell=!{cellName}:Deployment=!{applicationName}:ApplicationDeployment=:EJBModuleDeployment=uri
    #myEJB.jar:Classloader=
    #
    
    #
    #Properties
    #
    mode=PARENT_FIRST #ENUM(PARENT_FIRST|PARENT_LAST),default(PARENT_FIRST)
    
    
    #
    # Header ( EJBDeployment ClassLoader's LibraryRef )
    #
    ResourceType=LibraryRef
    ImplementingResourceType=Application
    ResourceId=Cell=!{cellName}:Deployment=!{applicationName}:ApplicationDeployment=:EJBModuleDeployment=uri
    #myEJB.jar:Classloader=:LibraryRef=libraryName#myLibName
    #
    
    #
    #Properties
    #
    libraryName=myLibName 
    sharedClassLoader=null
    
    #
    EnvironmentVariablesSection
    #
    #
    #Environment Variables
    cellName=myCell04
    applicationName=myApp
    

  2. Run the applyConfigProperties command to change an EJB 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 '])
    

Use the properties file to configure and manage the EJB module deployment object and its properties.


What to do next

Save the changes to the configuration.

  • Extracting properties files
  • Create server, cluster, application, or authorization group objects using properties files and wsadmin scripting
  • Deleting server, cluster, application, or authorization group objects using properties files
  • PropertiesBasedConfiguration .