Configure applications for enterprise bean modules

 


  1. Get the deployment ID:

    set deploymentid {$AdminConfig getid /Deployment:appname/}
    
    set deployedObjectids {$AdminConfig showAttribute $deploymentid deployedObject}
    
    foreach deployObjectid $deployObjectids {
    
        set moduleids  {$AdminConfig showAttribute $deployObject ModuleId}
    
        foreach moduleid $moduleids {
    
            if ({regexp EJBModuleDeployment $moduleid} == 1} {
    
                $AdminConfig create EJBModuleConfiguration $moduleid {{name ejbmodule} {description "EJB Module"} {enterpriseBeanConfigs:StatefulSessionBeanConfig {{{ejbName ejbname} {timeout 10000}}}}}
    
            {
    
    }
    

  2. Create an enterprise bean module configuration object for each JAR and set the timeout attribute:

    One can modify this example to set other attributes for the enterprise bean module configuration.

  3. Save the changes:

    $AdminConfig save