Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


weblogic.jms.extensions
Class JMSMessageInfo

java.lang.Object
  extended by weblogic.messaging.runtime.MessageInfo
      extended by weblogic.jms.extensions.JMSMessageInfo


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.

See Also:
CompositeData, JMSDestinationRuntimeMBean, JMSServerRuntimeMBean, JMSDurableSubscriberRuntimeMBean

Field Summary

 

Fields inherited from class weblogic.messaging.runtime.MessageInfo
consumerID, 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

 

Method Summary
protected  Map getCompositeDataMap()
           
 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(CompositeData cd)
           
 void setBodyIncluded(boolean bodyIncluded)
          Sets the BodyIncluded attribute.
 void setDestinationName(String destinationName)
          Sets the DestinationName attribute.
 void setMessage(WLMessage message)
          Sets the message attribute.
 void setMessageSize(long messageSize)
          Sets the MessageSize attribute.

 

Methods inherited from class weblogic.messaging.runtime.MessageInfo
getCompositeType, getConsumerID, getHandle, getSequenceNumber, getState, getStateString, getStateString, getXidString, setConsumerID, setHandle, setSequenceNumber, setState, setXidString, toCompositeData

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Method Detail

initOpenInfo

protected void initOpenInfo()
Overrides:
initOpenInfo in class MessageInfo

getMessage

public 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.

Returns:
the JMS message.

setMessage

public void setMessage(WLMessage message)
Sets the message attribute.
Parameters:
message - A JMS message.

getMessageSize

public long getMessageSize()
Returns the size of the message including the body.
Returns:
the size of the message in bytes.

setMessageSize

public void setMessageSize(long messageSize)
Sets the MessageSize attribute.
Parameters:
messageSize - The message size in bytes.

getDestinationName

public String getDestinationName()
Returns the name of the destination that is hosting the message. This attribute is used to differentiate messages that are returned from cursors that aggregate messages across destinations.
Returns:
the destination name.

setDestinationName

public void setDestinationName(String destinationName)
Sets the DestinationName attribute.
Parameters:
destinationName - The destination name.

isBodyIncluded

public boolean isBodyIncluded()
Returns true if the message body is included in the CompositeData representation.
Returns:
the value of the BodyIncluded attribute.

setBodyIncluded

public void setBodyIncluded(boolean bodyIncluded)
Sets the BodyIncluded attribute.
Parameters:
bodyIncluded - Indicates whether to include the message body in the CompositeData representation.

readCompositeData

protected void readCompositeData(CompositeData cd)
                          throws OpenDataException
Overrides:
readCompositeData in class MessageInfo
Throws:
OpenDataException

getCompositeDataMap

protected Map getCompositeDataMap()
                           throws OpenDataException
Overrides:
getCompositeDataMap in class MessageInfo
Throws:
OpenDataException

Skip navigation links

Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09