BEA Systems, Inc.

BEA WebLogic Server 9.0 API Reference


weblogic.jms.extensions
Interface XMLMessage

All Superinterfaces:
Message, TextMessage

public interface XMLMessage
extends TextMessage

An XMLMessage is used to send a message containing XML content.

See Also:
WLSession.createXMLMessage(), WLSession.createXMLMessage(String), WLSession.createXMLMessage(Document), TextMessage
Copyright © 2005 BEA Systems, Inc. All Rights Reserved.

Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Method Summary
 Document getDocument()
          Return reference to DOM document for this XML message.
 void setDocument(Document document)
          Set the content of the message to the given DOM document.
 
Methods inherited from interface javax.jms.TextMessage
getText, setText
 
Methods inherited from interface javax.jms.Message
acknowledge, clearBody, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
 

Method Detail

getDocument

public Document getDocument()
                     throws JMSException
Return reference to DOM document for this XML message.

Throws:
JMSException

setDocument

public void setDocument(Document document)
                 throws JMSException
Set the content of the message to the given DOM document.

Parameters:
document -
Throws:
JMSException - If the document cannot be serialized

Documentation is available at
http://download.oracle.com/docs/cd/E13222_01/wls/docs90
Copyright 2005 BEA Systems Inc.