Broker 10.5 | webMethods Broker Documentation | webMethods Broker Client Java API Programmer's Guide | Transaction Semantics | Using Broker Transaction Clients | Operating within a Transaction | Publishing Multiple Events
Publishing Multiple Events
Your application can publish several events with one call to the BrokerTransactionalClient.publish method that accepts an array of BrokerEvent objects. The following example contains an excerpt that shows the use of this method, which accepts a BrokerEvent array.
. . .
// transactional multi-publish
BrokerEvent[] er;
try {
pub.publish (er);
} catch (BrokerException ex) {
System.out.println ("Error on multi-publish" +ex);
. . .
Whether or not your application will receive an acknowledgment event or a reply event for each event it publishes depends on how the event type was defined.
Event types are defined with Designer. See the Software AG Designer Online Help for more information. Note that event types are known as document types in Designer.