Network Deployment (Distributed operating systems), v8.0 > Scripting the application serving environment (wsadmin) > Use properties files to manage system configuration > Manage specific configuration objects using properties files > Work with server properties files
Work with ORB properties files
We can use properties files to change ORB (ORB) properties and associated interceptors, plug-ins, properties and thread pool attributes under a server.
Determine the changes to make to your Object Request Broker configuration.
Start wsadmin.sh. To start wsadmin using the Jython language, run...
WP_PROFILE/bin/wsadmin -lang jython
Use a properties file, you can create, modify, or delete ORB configuration properties.
Run administrative commands using wsadmin to change a properties file for an Object Request Broker, validate the properties, and apply them to the configuration.
Actions for Object Request Broker properties files. We can create, modify, and delete ORB properties.
Action Procedure create Not applicable modify Edit properties and then run applyConfigProperties. delete Not applicable create Property, Plug-ins, or Interceptors Set properties and then run applyConfigProperties. delete Property, Plug-ins, or Interceptors Specify those properties to delete in the properties file and then run deleteConfigProperties. Optionally, you can use interactive mode with the commands:
AdminTask.command_name('-interactive')
Procedure
- Create ORB properties.
- Specify ObjectRequestBroker properties in a properties file.
Open an editor and specify ORB properties in a properties file. We can copy the following example properties into an editor and modify the properties as needed for your situation. We can use properties files to change Object Request Broker properties and associated interceptors, plug-ins, properties and thread pool attributes under a server.
# SubSection 1.0 # ObjectRequestBroker Service # ResourceType=ObjectRequestBroker ImplementingResourceType=ObjectRequestBroker ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:ObjectRequestBroker= AttributeInfo=services # #Properties # requestTimeout=180 #integer,required,default(0) context=!{serverName} forceTunnel=never tunnelAgentURL=null connectionCacheMaximum=240 #integer,required,default(0) requestRetriesDelay=0 #integer,required,default(0) requestRetriesCount=1 #integer,required,default(0) useServerThreadPool=false #boolean,default(false) connectionCacheMinimum=100 #integer,required,default(0) enable=true #boolean,default(false) commTraceEnabled=false #boolean,default(false) locateRequestTimeout=180 #integer,required,default(0) noLocalCopies=false #boolean,default(false) # # SubSection 1.0.1 # ORBInterceptors # ResourceType=ObjectRequestBroker ImplementingResourceType=ObjectRequestBroker ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:ObjectRequestBroker= AttributeInfo=interceptors(name,null) # #Properties # com.ibm.ISecurityLocalObjectBaseL13Impl.CSIClientRI= com.ibm.debug.olt.ivbtrjrt.OLT_RI= com.ibm.ws.wlm.client.WLMClientInitializer= com.ibm.ws.runtime.workloadcontroller.OrbWorkloadRequestInterceptor= com.ibm.ws.activity.remote.cos.ActivityServiceServerInterceptor= com.ibm.ISecurityLocalObjectBaseL13Impl.ClientRIWrapper= com.ibm.debug.DebugPortableInterceptor= com.ibm.ws.wlm.server.WLMServerInitializer= com.ibm.ws.Transaction.JTS.TxInterceptorInitializer= com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityComponentFactory= com.ibm.ISecurityLocalObjectBaseL13Impl.ServerRIWrapper= com.ibm.ISecurityLocalObjectBaseL13Impl.CSIServerRI= com.ibm.ejs.ras.RasContextSupport= # # SubSection 1.0.2 # ORBPlugins # ResourceType=ObjectRequestBroker ImplementingResourceType=ObjectRequestBroker ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:ObjectRequestBroker= AttributeInfo=plugins(name,null) # # #Properties # com.ibm.ws.orbimpl.WSORBPropertyManager= com.ibm.ws.wlm.client.WLMClient= com.ibm.ws.pmi.server.modules.OrbPerfModule= com.ibm.ISecurityUtilityImpl.SecurityPropertyManager= com.ibm.ws.csi.CORBAORBMethodAccessControl= com.ibm.ws.orbimpl.transport.WSTransport= # # SubSection 1.0.3 # Thread pool for ORB # ResourceType=ThreadPool ImplementingResourceType=ObjectRequestBroker ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:ObjectRequestBroker=:ThreadPool= AttributeInfo=threadPool # # #Properties # maximumSize=50 #integer,required,default(5) name=ORB.thread.pool inactivityTimeout=3500 #integer,required,default(5000) minimumSize=10 #integer,required,default(1) isGrowable=false #boolean,default(false) # # SubSection 1.0.4 # ORBProperties # ResourceType=ObjectRequestBroker ImplementingResourceType=ObjectRequestBroker ResourceId=Cell=!{cellName}:Node=!{nodeName}:Server=!{serverName}:ObjectRequestBroker= AttributeInfo=properties(name,value) # #Properties # com.ibm.ws.orb.transport.WSSSLClientSocketFactoryName=com.ibm.ws.security.orbssl.WSSSLClientSocketFactoryImpl com.ibm.CORBA.RasManager=com.ibm.websphere.ras.WsOrbRasManager com.ibm.CORBA.ConnectionInterceptorName=com.ibm.ISecurityLocalObjectBaseL13Impl.SecurityConnectionInterceptor com.ibm.ws.orb.transport.useMultiHome=true com.ibm.ws.orb.transport.WSSSLServerSocketFactoryName=com.ibm.ws.security.orbssl.WSSSLServerSocketFactoryImpl com.ibm.CORBA.enableLocateRequest=true com.ibm.websphere.management.registerServerIORWithLSD=true EnvironmentVariablesSection # #Environment Variables cellName=WASCell06 serverName=myServer nodeName=WASNode04- Run applyConfigProperties to create an ObjectRequestBroker configuration.
Run applyConfigProperties 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'])
- Modify existing ORB properties.
- Obtain a properties file for the ORB to change.
We can extract a properties file for an ObjectRequestBroker using the extractConfigProperties command.
- Open the properties file in an editor and change the properties as needed.
Ensure that the environment variables in the properties file match the system.
- Run applyConfigProperties.
- Delete the ORB properties.
To delete one or more properties, specify only those properties to delete in the properties file and run deleteConfigProperties.
AdminTask.deleteConfigProperties('[-propertiesFileName myObjectType.props -reportFileName report.txt]')
Results
We can use the properties file to configure and manage ORB.
What to do next
Save the changes to the configuration.
Extract properties files using wsadmin.sh
Create server, cluster, application, or authorization group objects using properties files and wsadmin scripting
Delete server, cluster, application, or authorization group objects using properties files
Related
PropertiesBasedConfiguration command group using wsadmin.sh