About this task
The rulesets that contain rules with emit event statements
are executed just like any other ruleset, except that successful ruleset
execution generates event messages. The event messages are sent to
the JMS target destination that is defined in the XU plug-in configuration.
The target destination can be the default destination or a destination
that you set. The default event message destination for a typical
stand-alone installation of
Decision Server Events is
a JMS topic that has
jms/eventDestination as
the JNDI name and
jms/WbeTopicConnectionFactory as
the connection factory. In a clustered environment, the default destination
is a JMS Queue that has
jms/eventQueue as the
JNDI name and
jms/WbeQueueConnectionFactory as
the connection factory.
The default WebSphere Application Server stand-alone
configuration of the XU has the same JMS parameters as the Decision Server Events default
parameters. However, you can configure the XU to set the target destination
or other JMS parameters. For more information about the XU, see the
related topic Execution Unit (XU).
To
configure the XU, you can edit the ra.xml deployment
descriptor file manually or you can use the WebSphere Application Server administrative
console to set custom properties for the XU connection factory.
Note: By default, the connection to the event bus is secured.
The default credentials used for the connection are the initial
resAdmin account
credentials. However, you can modify the default security settings
by using the
res-setup ant task. You can use
the
eventplugin.username,
eventplugin.password,
and
eventplugin.secured attributes in the
res-setup ant
task to perform the following actions:
Results
At run time, an error is logged if the event messages are
not sent successfully. This error might occur because of a failure
in the message service, a configuration error, or an incorrect ruleset.
However, an event message error condition does not prevent successful
execution of the ruleset.