You can use the AdminApp object to set configurations in an application. Some configuration settings are not available through the AdminApp object. This example uses the AdminConfig object to configure enterprise bean modules for all the JARs in the application.
Using Jacl:
set deployments [$AdminConfig getid /Deployment:myApp/]
Example output:
myApp(cells/mycell/applications/myApp.ear/deployments/myApp:deployment.xml#Deployment_1)
Using Jacl:
set deploymentObject [$AdminConfig showAttribute $deployments deployedObject] set modules [$AdminConfig showAttribute $deploymentObject modules]
Example output:
(cells/mycell/applications/myApp.ear/deployments/myApp:deployment.xml#WebModuleDeployment_1) (cells/mycell/applications/myApp.ear/deployments/myApp:deployment.xml#EJBModuleDeployment_1) (cells/mycell/applications/myApp.ear/deployments/myApp:deployment.xml#EJBModuleDeployment_2)
Using Jacl:
foreach module $modules { if ([regexp EJBModuleDeployment $module] == 1} { $AdminConfig create EJBModuleConfiguration $module {{name myejbModuleConfig} {description "EJB Module Config post created"} {enterpriseBeanConfigs:StatefulSessionBeanConfig {{{ejbName myejb} {timeout 10000}}}}} } }You can modify this example to set other attributes for the enterprise bean module configuration.
Example output:
myejbModuleConfig(cells/mycell/applications/myApp.ear/deployments/myApp:deployment.xml#EJBModuleConfiguration_1)
Using Jacl:
$AdminConfig save