Universal Messaging 10.3 | Administration Guide | Universal Messaging Enterprise Manager | Administration Using Enterprise Manager | Channel Administration | Channel Publishing
 
Channel Publishing
This section describes how to publish events to a Universal Messaging channel from the Enterprise Manager.
Events can be published either from scratch, or by duplicating events already published onto a channel from within the snoop (see Channel Snoop) panel view. Both options allow you to add and remove event properties, set the event TTL, the event persistence, the event tag and the number of times the event will be published to the channel.
The event data can be either manually input, obtained from an XML Document file or any other binary file.
Publishing an event from scratch
Firstly, to publish a new event from scratch, select the desired channel you wish to publish an event onto, and then right-click on the same node and choose the Publish menu option. This will display a dialog as shown below where you can construct the event.
In the image above, the data for the event is simply a string. The properties are added by entering a property key, a value and a type and then clicking on the Add Property. Once added, the properties are displayed in the table at the bottom of the panel. To remove a property entry, click on the property within the table view and select the Remove Property menu option. Properties can also be edited by clicking on the property from the table and double-clicking in the cell you wish to change. Once you hit return, the value will be updated in the table.
Publishing an event from a file
To add an XML document as the event data, click on the File button in the dialog, and choose your XML file from the file chooser. Once opened, the contents of the file will be displayed within the event data section of the dialog and will be non-editable. An example of this is shown in the image below.
To publish the contents of any other file within the event data, repeat the above steps for XML and select a non-XML file. The contents of the file will not be displayed, however the file will be read in binary format when the OK button is clicked and published to the channel. Once again, when a file is selected for publishing the event data section is non-editable.
Clicking on the Clear button will cancel any file that has previously been selected and allow you to once again select a file or manually enter the event data.
Duplicating, editing and republishing an event
In order to duplicate or edit and republish an event that has already been published to a channel, you must first of all select the snoop panel (see Channel Snoop) for the channel in question, and snoop the channel. Once events are displayed in the snoop panel, select the event you wish to duplicate or edit and republish from the table of events. Right-clicking on the event will display a menu with 2 options. The first option Purge Event allows you to purge an individual event from a channel. The second menu option Edit and Republish Event opens the event publish dialog with the details of the event already filled in, including the event properties, TTL and persistence.
Properties can be added / removed from the duplicate event, and existing properties can be edited. To edit a property, double-click in the cell of the property you wish to change and then edit its contents. You can also choose to purge the original event from the channel by checking the Purge Original Event checkbox. If you want to create multiple copies of the event, for example for test purposes, enter the required number of copies in the Num Of Publishes field. When you click the OK button, the event(s) will be published onto the channel. The image below shows the publish dialog for a JMS Message published onto a Universal Messaging channel.
The publish option is also available for queues. The republish option is also available from the snoop panel for queues.