public class JMSMessageInfo extends MessageInfo
This class encapsulates a JMS message and meta-data that describes the context of the message as it exists in the server at a given point in time. Instances of this class are created by the JMX message management APIs that are used for the browsing and manipulation of messages. These APIs return a CompositeData representation of this object. This object may also be used by a management client to import a message.
CompositeData, 
JMSDestinationRuntimeMBean, 
JMSServerRuntimeMBean, 
JMSDurableSubscriberRuntimeMBeanconsumerID, handle, ITEM_CONSUMER_ID, ITEM_HANDLE, ITEM_SEQUENCE_NUMBER, ITEM_STATE, ITEM_XID_STRING, openItemDescriptions, openItemNames, openItemTypes, sequenceNumber, state, STATE_DELAYED, STATE_EXPIRED, STATE_ORDERED, STATE_PAUSED, STATE_RECEIVE, STATE_REDELIVERY_COUNT_EXCEEDED, STATE_SEND, STATE_TRANSACTION, STATE_VISIBLE, stateString, xidString| Modifier and Type | Method | Description | 
|---|---|---|
| protected java.util.Map | getCompositeDataMap() | |
| java.lang.String | getDestinationName() | Returns the name of the destination that is hosting the message. | 
| WLMessage | getMessage() | 
 Returns the JMS message attribute. | 
| long | getMessageSize() | Returns the size of the message including the body. | 
| protected void | initOpenInfo() | |
| boolean | isBodyIncluded() | Returns true if the message body is included in the CompositeData
 representation. | 
| protected void | readCompositeData(javax.management.openmbean.CompositeData cd) | |
| void | setBodyIncluded(boolean bodyIncluded) | Sets the BodyIncluded attribute. | 
| void | setDestinationName(java.lang.String destinationName) | Sets the DestinationName attribute. | 
| void | setMessage(WLMessage message) | Sets the message attribute. | 
| void | setMessageSize(long messageSize) | Sets the MessageSize attribute. | 
getCompositeType, getConsumerID, getHandle, getSequenceNumber, getState, getStateString, getStateString, getXidString, setConsumerID, setHandle, setSequenceNumber, setState, setXidString, toCompositeDataprotected void initOpenInfo()
initOpenInfo in class MessageInfopublic WLMessage getMessage()
Returns the JMS message attribute. Note that if the JMSMessageInfo instance was created from a CompositeData representation where the bodyIncluded attribute is set to false, the message type returned may differ from the original message type.
public void setMessage(WLMessage message)
message - A JMS message.public long getMessageSize()
public void setMessageSize(long messageSize)
messageSize - The message size in bytes.public java.lang.String getDestinationName()
public void setDestinationName(java.lang.String destinationName)
destinationName - The destination name.public boolean isBodyIncluded()
public void setBodyIncluded(boolean bodyIncluded)
bodyIncluded - Indicates whether to include the message body in the CompositeData
          representation.protected void readCompositeData(javax.management.openmbean.CompositeData cd)
                          throws javax.management.openmbean.OpenDataException
readCompositeData in class MessageInfojavax.management.openmbean.OpenDataExceptionprotected java.util.Map getCompositeDataMap()
                                     throws javax.management.openmbean.OpenDataException
getCompositeDataMap in class MessageInfojavax.management.openmbean.OpenDataException