org.objectweb.joram.client.jms

Class Message

Implemented Interfaces:
javax.jms.Message
Known Direct Subclasses:
BytesMessage, MapMessage, ObjectMessage, StreamMessage, TextMessage

public class Message
extends java.lang.Object
implements javax.jms.Message

Implements the javax.jms.Message interface.

A Joram message wraps a proprietary MOM message which is actually the effective MOM transport facility for the JMS operations.

Field Summary

protected Message
momMsg
The wrapped MOM message.
protected Session
sess
If the message is actually consumed, the session that consumes it, null otherwise.

Method Summary

void
acknowledge()
API method.
void
clearBody()
API method.
void
clearProperties()
API method.
boolean
getBooleanProperty(String name)
API method.
byte
getByteProperty(String name)
API method.
double
getDoubleProperty(String name)
API method.
float
getFloatProperty(String name)
API method.
int
getIntProperty(String name)
API method.
String
getJMSCorrelationID()
API method.
byte[]
getJMSCorrelationIDAsBytes()
API method.
int
getJMSDeliveryMode()
API method.
javax.jms.Destination
getJMSDestination()
API method.
long
getJMSExpiration()
API method.
String
getJMSMessageID()
API method.
int
getJMSPriority()
API method.
boolean
getJMSRedelivered()
API method.
javax.jms.Destination
getJMSReplyTo()
API method.
long
getJMSTimestamp()
API method.
String
getJMSType()
API method.
long
getLongProperty(String name)
API method.
Object
getObjectProperty(String name)
API method.
Enumeration
getPropertyNames()
API method.
short
getShortProperty(String name)
API method.
String
getStringProperty(String name)
API method.
protected void
prepare()
Method preparing the message for sending; resets header values, and serializes the body (done in subclasses).
boolean
propertyExists(String name)
API method.
void
setBooleanProperty(String name, boolean value)
API method.
void
setByteProperty(String name, byte value)
API method.
void
setDoubleProperty(String name, double value)
API method.
void
setFloatProperty(String name, float value)
API method.
void
setIntProperty(String name, int value)
API method.
void
setJMSCorrelationID(String correlationID)
API method.
void
setJMSCorrelationIDAsBytes(byte[] correlationID)
API method.
void
setJMSDeliveryMode(int deliveryMode)
API method.
void
setJMSDestination(javax.jms.Destination dest)
API method.
void
setJMSExpiration(long expiration)
API method.
void
setJMSMessageID(String id)
API method.
void
setJMSPriority(int priority)
API method.
void
setJMSRedelivered(boolean redelivered)
API method.
void
setJMSReplyTo(javax.jms.Destination replyTo)
API method.
void
setJMSTimestamp(long timestamp)
API method.
void
setJMSType(String type)
API method.
void
setLongProperty(String name, long value)
API method.
void
setObjectProperty(String name, Object value)
API method.
void
setShortProperty(String name, short value)
API method.
void
setStringProperty(String name, String value)
API method.

Field Details

momMsg

protected Message momMsg
The wrapped MOM message.


sess

protected Session sess
If the message is actually consumed, the session that consumes it, null otherwise.

Method Details

acknowledge

public void acknowledge()
            throws JMSException
API method.


clearBody

public void clearBody()
            throws JMSException
API method.


clearProperties

public void clearProperties()
            throws JMSException
API method.


getBooleanProperty

public boolean getBooleanProperty(String name)
            throws JMSException
API method.


getByteProperty

public byte getByteProperty(String name)
            throws JMSException
API method.


getDoubleProperty

public double getDoubleProperty(String name)
            throws JMSException
API method.


getFloatProperty

public float getFloatProperty(String name)
            throws JMSException
API method.


getIntProperty

public int getIntProperty(String name)
            throws JMSException
API method.


getJMSCorrelationID

public String getJMSCorrelationID()
            throws JMSException
API method.


getJMSCorrelationIDAsBytes

public byte[] getJMSCorrelationIDAsBytes()
            throws JMSException
API method.


getJMSDeliveryMode

public int getJMSDeliveryMode()
            throws JMSException
API method.


getJMSDestination

public javax.jms.Destination getJMSDestination()
            throws JMSException
API method.


getJMSExpiration

public long getJMSExpiration()
            throws JMSException
API method.


getJMSMessageID

public String getJMSMessageID()
            throws JMSException
API method.


getJMSPriority

public int getJMSPriority()
            throws JMSException
API method.


getJMSRedelivered

public boolean getJMSRedelivered()
            throws JMSException
API method.


getJMSReplyTo

public javax.jms.Destination getJMSReplyTo()
            throws JMSException
API method.


getJMSTimestamp

public long getJMSTimestamp()
            throws JMSException
API method.


getJMSType

public String getJMSType()
            throws JMSException
API method.


getLongProperty

public long getLongProperty(String name)
            throws JMSException
API method.


getObjectProperty

public Object getObjectProperty(String name)
            throws JMSException
API method.


getPropertyNames

public Enumeration getPropertyNames()
            throws JMSException
API method.


getShortProperty

public short getShortProperty(String name)
            throws JMSException
API method.


getStringProperty

public String getStringProperty(String name)
            throws JMSException
API method.


prepare

protected void prepare()
            throws Exception
Method preparing the message for sending; resets header values, and serializes the body (done in subclasses).


propertyExists

public boolean propertyExists(String name)
            throws JMSException
API method.


setBooleanProperty

public void setBooleanProperty(String name,
                               boolean value)
            throws JMSException
API method.


setByteProperty

public void setByteProperty(String name,
                            byte value)
            throws JMSException
API method.


setDoubleProperty

public void setDoubleProperty(String name,
                              double value)
            throws JMSException
API method.


setFloatProperty

public void setFloatProperty(String name,
                             float value)
            throws JMSException
API method.


setIntProperty

public void setIntProperty(String name,
                           int value)
            throws JMSException
API method.


setJMSCorrelationID

public void setJMSCorrelationID(String correlationID)
            throws JMSException
API method.


setJMSCorrelationIDAsBytes

public void setJMSCorrelationIDAsBytes(byte[] correlationID)
API method.


setJMSDeliveryMode

public void setJMSDeliveryMode(int deliveryMode)
            throws JMSException
API method.


setJMSDestination

public void setJMSDestination(javax.jms.Destination dest)
            throws JMSException
API method.


setJMSExpiration

public void setJMSExpiration(long expiration)
            throws JMSException
API method.


setJMSMessageID

public void setJMSMessageID(String id)
            throws JMSException
API method.


setJMSPriority

public void setJMSPriority(int priority)
            throws JMSException
API method.


setJMSRedelivered

public void setJMSRedelivered(boolean redelivered)
            throws JMSException
API method.


setJMSReplyTo

public void setJMSReplyTo(javax.jms.Destination replyTo)
            throws JMSException
API method.


setJMSTimestamp

public void setJMSTimestamp(long timestamp)
            throws JMSException
API method.


setJMSType

public void setJMSType(String type)
            throws JMSException
API method.


setLongProperty

public void setLongProperty(String name,
                            long value)
            throws JMSException
API method.


setObjectProperty

public void setObjectProperty(String name,
                              Object value)
            throws JMSException
API method.


setShortProperty

public void setShortProperty(String name,
                             short value)
            throws JMSException
API method.


setStringProperty

public void setStringProperty(String name,
                              String value)
            throws JMSException
API method.


Copyright B) 2004 Scalagent - All rights reserved