Work with SIB engine properties files
Use properties files to create, modify, or delete a service integration bus (SIBus) messaging engine. SIBus is the default Java Message Service (JMS) messaging provider for the product.
Determine the property values that to set for the SIB engine 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.
Use a properties file to create, modify, or delete a SIB engine and its configuration properties.
Action Procedure create Specify commandName=createSIBusEngine in the properties file. Run the applyConfigProperties command. modify Specify commandName=modifySIBEngine in the properties file. Run the applyConfigProperties command. delete Specify commandName=deleteSIBEngine in the properties file. Run the applyConfigProperties command. create Property Not applicable delete Property Not applicable
Tasks
- Create modify, or delete a SIB engine.
- Create a SIB engine.
Open an editor, specify commandName=createSIBEngine in the header, specify the SIB engine properties, and save the file.
We can copy the following SIB engine configuration to the properties file and edit the properties as needed.
# # Header # CreateDeleteCommandProperties=true commandName=createSIBEngine # # # Properties # initialState=null #String node=myNode #String defaultBlockedRetryTimeout=null #java.lang.Long server=myServer #String highMessageThreshold=null #java.lang.Long bus=myBus #String,required engine=null #String cluster=null #String description=null #String- Modify a SIB engine.
Open an editor, specify commandName=modifySIBEngine in the header, change the SIB engine properties as needed, and save the file. Set the required property to be modified. Also set cluster or node and server properties. The engine property is not required if it is a single engine.
# # Header # CreateDeleteCommandProperties=true commandName=modifySIBEngine # # # Properties # initialState=null #String node=myNode #String defaultBlockedRetryTimeout=null #java.lang.Long server=myServer #String highMessageThreshold=null #java.lang.Long bus=myBus #String,required engine=null #String cluster=null #String description=null #String- Delete a SIB engine object.
Open an editor, specify commandName=deleteSIBEngine in the header, specify the bus and any other required properties, specify cluster or node and server properties, and then save the file.
# # Header # CreateDeleteCommandProperties=true commandName=deleteSIBEngine # # # Properties # cluster=null #String bus=myBus #String,required engine=null #String node=myNode #String server=myServer #String
- Run the applyConfigProperties command.
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 mySIBEngine.props -reportFileName report.txt'])Optionally, we can use the command in interactive mode:
AdminTask.applyConfigProperties('-interactive')
Use the properties file to configure and manage the SIB engine.
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 .