Universal Messaging Developer Guide : The Enterprise Client APIs : The Universal Messaging Java Enterprise Developer's Guide : General Features : Universal Messaging Java - Universal Messaging Event Dictionaries
Universal Messaging Java - Universal Messaging Event Dictionaries
Constructing an Event
In this code snippet, we assume we want to publish an event containing the definition of a bond, say, with a name of "bond1":

nEventProperties props = new nEventProperties();
props.put("bondname", "bond1");
props.put("price", 100.00);
nConsumeEvent evt = new nConsumeEvent( "atag", props );
channel.publish(evt);
Note that in this example code, we also create a new Universal Messaging Event object (nConsumeEvent) to make use of our Event Dictionary (nEventProperties).
Copyright © 2013-2014 Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback