# Implementing XML Messaging

Sun Microsystems, Inc. provides a Java Message Service (JMS) API, and Oracle8i provides an Advanced Queueing API, that you can use with Business Components for Java to implement XML messaging.

To do so, you use business component framework methods in the ViewObjectImpl and ViewRowImpl classes which enable the reading and writing of a canonical format of XML data:

- writeXML — Writes the current object into an XML Element, which can be added to any XML Document, including as a payload for an XML Message.

- createXMLDefinition — Creates an XML DTD for a ViewObject or ViewRow.

- readXML — Reads the attribute values or rows in this object from the XML Element, which could be derived from an XML Document or an XML Message.

The XML messaging tutorial shows you how to implement a working messaging system. In addition, it provides the general steps you need to follow to implement XML messaging. To locate the tutorial, choose Help | Help Topics. In the contents, navigate to the tutorial in the Tutorials and Sample Applications book.

For more information on business component methods, see the Javadoc. For more information on JMS, see the Javasoft web site. For more information on Advanced Queueing, see your Oracle8i documentation.

Related topics
Using XML Metadata Properties that Effect XML Generation