Language Reference - XML - Publishing Data Messages
The message to be published is represented by an XML Message Out
object. Attributes of the XML Message Out object are used to decide
the topic under which the data message should be published, the CCOM
type of the data message (Data or Event), the origin of the publication
(i.e., JGrafchart), etc.
To publish a data message the following steps are performed:
-
The content of the message is built up using ordinary actions.
For example, the values of the different elements and attributes within
the XML Message out object are set using assignment actions.
-
The necessary XML Message out attributes are set either interactively
or programmatically.
-
The message is published by calling the method publishMessage()
of the XML Message Out object. When this is done an XML Message structure
is created from the XML Message Out object. The XML Message is embedded
in an CCOM envelope and then send to the CCOM server.