Universal Messaging 9.7 | Universal Messaging Developer Guide | Enterprise APIs | Enterprise Developer's Guide for Java | General Features | Event Dictionaries
 
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, see Events) to make use of our Event Dictionary (nEventProperties).

Copyright © 2013-2015 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.