When you configure event runtime properties (for example,
if you move the event runtime to a different database manager, or
you want to change to a different JMS messaging provider), you can
make the changes by using the WebSphere® Application Server administrative
scripting tool, wsadmin. You can modify the properties
by using wsadmin, or you can use the supplied AdminTask
object to set a single property.
About this task
If you want to modify multiple properties, use the
wsadmin tool.
If you want to modify a single property, use the AdminTask object
as follows:
Procedure
- Start wsadmin. For more details of the
use of wsadmin, see Using the wsadmin scripting tool .
- Run the following command to set a single property:
- Using Jacl:
wsadmin
$AdminTask wbeSetProperty {-jndiName com/ibm/wbe/wbeProperties01
-propertyName propertyName
-propertyValue propertyValue}
- Using Jython:
wsadmin -lang jython
AdminTask.wbeSetProperty('[-jndiName com/ibm/wbe/wbeProperties01
-propertyName propertyName
-propertyValue propertyValue]')
Where propertyName is the name of the property
you want to change, and propertyValue is the value
that you want to set for that property.
- Save your changes:
- Using Jacl:
$AdminConfig save
- Using Jython:
AdminConfig.save()
- Restart the event runtime to apply your changes.
Results
When the event runtime restarts, the changes you made to the
properties are applied.