BEA Systems, Inc.

weblogic.jms.extensions
Interface WLMessage

All Superinterfaces:
Message

public interface WLMessage
extends Message

A WLMessage provides methods not supported by javax.jms.Message.

WLMessage provide methods for the following:

See Also:
Message

Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Method Summary
 boolean getDDForwarded()
          Return true if the message is forwarded from one DD Member to another or from SAFImported Destination to a DD Member
 long getJMSDeliveryTime()
          Deprecated. As of 9.0, replaced by javax.jms.Message.getIntProperty("JMS_BEA_DeliveryTime").
 Document getJMSMessageDocument()
          Returns an XML DOM Document representation of the message.
 int getJMSRedeliveryLimit()
          Deprecated. As of 9.0, replaced by javax.jms.Message.getIntProperty("JMS_BEA_RedeliveryLimit").
 long getSAFSeqNumber()
          Get the Sequence Number on the message.
 String getSAFSequenceName()
          Get the SAF SequenceName for the message.
 String getUnitOfOrder()
          Get Unit-of-Order name.
 void setJMSDeliveryTime(long deliveryTime)
          Deprecated. As of 9.0, no longer needed.
 void setJMSRedeliveryLimit(int redeliveryLimit)
          Deprecated. As of 9.0, no longer needed.
 void setSAFSeqNumber(long seqNumber)
          set the sequence number for a sequence.
 void setSAFSequenceName(String safSequenceName)
          Set the SAF Sequence Name for this WL Message
 
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

getJMSDeliveryTime

long getJMSDeliveryTime()
                        throws JMSException
Deprecated. As of 9.0, replaced by javax.jms.Message.getIntProperty("JMS_BEA_DeliveryTime").

Get the delivery time for the message; the delivery time is an absolute time expressed in milliseconds. This value is set by the provider when the message sent.

Returns:
The delivery time for the message.
Throws:
JMSException - if a JMS error occurs.
See Also:
WLMessageProducer.getTimeToDeliver(), WLMessageProducer.setTimeToDeliver(long)

setJMSDeliveryTime

void setJMSDeliveryTime(long deliveryTime)
                        throws JMSException
Deprecated. As of 9.0, no longer needed.

Set the delivery time for the message; this method is for use by providers only, and is called automatically when a message is sent. When the message is sent, the current redelivery time is over-ridden.

Parameters:
deliveryTime - the time to deliver this message.
Throws:
JMSException - if a JMS error occurs.
See Also:
WLMessageProducer.getTimeToDeliver(), WLMessageProducer.setTimeToDeliver(long)

getJMSRedeliveryLimit

int getJMSRedeliveryLimit()
                          throws JMSException
Deprecated. As of 9.0, replaced by javax.jms.Message.getIntProperty("JMS_BEA_RedeliveryLimit").

Get the redelivery limit for the message. This is the number of times a message will be redelivered after a recover or rollback. This method should only be called by JMS providers. The value is set by the producer when the message is sent.

Returns:
The number of times to redeliver the message
Throws:
JMSException - if a JMS error occurs.
See Also:
WLMessageProducer.getRedeliveryLimit(), WLMessageProducer.setRedeliveryLimit(int)

setJMSRedeliveryLimit

void setJMSRedeliveryLimit(int redeliveryLimit)
                           throws JMSException
Deprecated. As of 9.0, no longer needed.

Set the redelivery limit for the message. This is the number of times a message will be redelivered after a recover or rollback. This method should only be called by JMS providers. The value is set by the producer when the message is sent.

Parameters:
redeliveryLimit - the number of times to redeliver the message
Throws:
JMSException - if a JMS error occurs.
See Also:
WLMessageProducer.getRedeliveryLimit(), WLMessageProducer.setRedeliveryLimit(int)

getJMSMessageDocument

Document getJMSMessageDocument()
                               throws JMSException
Returns an XML DOM Document representation of the message.

Throws:
JMSException

getDDForwarded

boolean getDDForwarded()
Return true if the message is forwarded from one DD Member to another or from SAFImported Destination to a DD Member

Returns:
true if the message is forwarded from one DD Member to another or from SAFImported Destination to a DD Member

getUnitOfOrder

String getUnitOfOrder()
Get Unit-of-Order name.

Returns:
unitOfOrderName

setSAFSequenceName

void setSAFSequenceName(String safSequenceName)
Set the SAF Sequence Name for this WL Message

Parameters:
safSequenceName -

getSAFSequenceName

String getSAFSequenceName()
Get the SAF SequenceName for the message.

Returns:

setSAFSeqNumber

void setSAFSeqNumber(long seqNumber)
set the sequence number for a sequence.

Parameters:
seqNumber -

getSAFSeqNumber

long getSAFSeqNumber()
Get the Sequence Number on the message.

Returns:
sequenceNumber

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