WebSphere WebSphere Enterprise Service Bus, Version 6.0.1 Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Sending an event with the current emitter settings

Events can be sent with current emitter settings, if transmission modes do not need to be specified.

Why and when to perform this task

If you do not need to specify a particular transmission mode or transaction mode, you can send an event using the current emitter settings. These settings are initially defined by an administrator in the emitter factory profile, but they can later be changed by event consumers.

Steps for this task

To send an event using the current emitter settings, use the sendEvent(CommonBaseEvent) method.
String eventId = emitter.sendEvent(event);

In this example, emitter is an Emitter instance, and event is a CommonBaseEvent instance.

Result

The returned value, eventId, is the globally unique identifier of the event (the value of the globalInstanceId field of CommonBaseEvent). If the event does not have a global instance identifier when you submit it, the emitter assigns one automatically.

Note: Submitting an event to an emitter does not guarantee that the event is sent to the event server, because the filter settings might cause the event to be discarded. A successful call to sendEvent() means only that the event was successfully processed by the emitter.

Task topic

Terms of Use | Rate this page

Timestamp iconLast updated: 13 Dec 2005
http://publib.boulder.ibm.com/infocenter/dmndhelp/v6rxmx/index.jsp?topic=/com.ibm.websphere.wesb.doc\doc\tcei_admin_useEmitterSettings.html

(C) Copyright IBM Corporation 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)