com.ibm.websphere.webmsg.publisher.jndijms
Class JmsWebObjectMsg

java.lang.Object
  extended by com.ibm.websphere.webmsg.publisher.jndijms.JmsWebMsg
      extended by com.ibm.websphere.webmsg.publisher.jndijms.JmsWebObjectMsg
All Implemented Interfaces:
WebMessage
Direct Known Subclasses:
BayeuxJmsObjectMsg

public class JmsWebObjectMsg
extends JmsWebMsg

WebMsg implementation to send an object over JMS


Field Summary
static java.lang.String OBJECT_MESSAGE
          Message type - Object.
 
Constructor Summary
JmsWebObjectMsg(java.lang.String target, java.io.Serializable obj)
          Constructor
JmsWebObjectMsg(java.lang.String destination, java.lang.String target, java.io.Serializable obj)
          Constructor
JmsWebObjectMsg(java.lang.String destination, java.lang.String target, java.io.Serializable obj, long messageID)
          Constructor
 
Method Summary
 java.lang.Object getData()
          Get data as Object
 javax.jms.Message getJmsMessage(javax.jms.Session session)
          Given a JMS session, return new JMS message for this web message.
 java.io.Serializable getSerializable()
          Get serializable object
 
Methods inherited from class com.ibm.websphere.webmsg.publisher.jndijms.JmsWebMsg
getDestination, getJmsDeliveryMode, getJmsPriority, getJmsTimeToLive, getMessageID, getMessageType, getTarget, setDestination, setJmsDeliveryMode, setJmsPriority, setJmsTimeToLive, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_MESSAGE

public static final java.lang.String OBJECT_MESSAGE
Message type - Object.

See Also:
Constant Field Values
Constructor Detail

JmsWebObjectMsg

public JmsWebObjectMsg(java.lang.String target,
                       java.io.Serializable obj)
Constructor

Parameters:
target - - target to send message too.
obj - - Serializable object to send.

JmsWebObjectMsg

public JmsWebObjectMsg(java.lang.String destination,
                       java.lang.String target,
                       java.io.Serializable obj)
Constructor

Parameters:
destination - Destination (SIBus specific)
target - Target to send message to
obj - serializable object to send

JmsWebObjectMsg

public JmsWebObjectMsg(java.lang.String destination,
                       java.lang.String target,
                       java.io.Serializable obj,
                       long messageID)
Constructor

Parameters:
destination - Destination (SIBus specific)
target - Target to send message to.
obj - serializable object to send
messageID - MessageID for message.
Method Detail

getSerializable

public java.io.Serializable getSerializable()
Get serializable object

Returns:

getData

public java.lang.Object getData()
Description copied from class: JmsWebMsg
Get data as Object

Specified by:
getData in interface WebMessage
Specified by:
getData in class JmsWebMsg
Returns:
the data attached to the message as a Java Object.
See Also:
JmsWebMsg:getData

getJmsMessage

public javax.jms.Message getJmsMessage(javax.jms.Session session)
                                throws javax.jms.JMSException
Description copied from class: JmsWebMsg
Given a JMS session, return new JMS message for this web message.

Specified by:
getJmsMessage in class JmsWebMsg
Parameters:
session - Existing JMS session.
Returns:
JMS Message
Throws:
javax.jms.JMSException - If error creating message.
See Also:
JmsWebMsg:getJmsMessage