com.ibm.websphere.webmsg.publisher.jndijms

Class JmsWebObjectMsg

  1. java.lang.Object
  2. extended bycom.ibm.websphere.webmsg.publisher.jndijms.JmsWebMsg
  3. extended bycom.ibm.websphere.webmsg.publisher.jndijms.JmsWebObjectMsg
All implemented interfaces:
WebMessage
Direct known subclasses:
BayeuxJmsObjectMsg

  1. public class JmsWebObjectMsg
  2. extends JmsWebMsg
WebMsg implementation to send an object over JMS

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
OBJECT_MESSAGE
Message type - Object.

Constructor Summary

Constructor and Description
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

Modifier and Type Method and Description
  1. java.lang.Object
getData()
  1. javax.jms.Message
getJmsMessage(javax.jms.Session session)
  1. 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

  1. public static final java.lang.String OBJECT_MESSAGE
Message type - Object.
See Also:

Constructor Detail

JmsWebObjectMsg

  1. public JmsWebObjectMsg(java.lang.String target,
  2. java.io.Serializable obj)
Constructor
Parameters:
target - - target to send message too.
obj - - Serializable object to send.

JmsWebObjectMsg

  1. public JmsWebObjectMsg(java.lang.String destination,
  2. java.lang.String target,
  3. java.io.Serializable obj)
Constructor
Parameters:
destination - Destination (SIBus specific)
target - Target to send message to
obj - serializable object to send

JmsWebObjectMsg

  1. public JmsWebObjectMsg(java.lang.String destination,
  2. java.lang.String target,
  3. java.io.Serializable obj,
  4. 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

  1. public java.io.Serializable getSerializable( )
Get serializable object
Returns:

getData

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

  1. public javax.jms.Message getJmsMessage( javax.jms.Session session)
  2. throws javax.jms.JMSException
Description copied from class: JmsWebMsg
Given a JMS session, return new JMS message for this web message.
Specified by:
Parameters:
session - Existing JMS session.
Returns:
JMS Message
Throws:
javax.jms.JMSException - If error creating message.
See Also:
JmsWebMsg:getJmsMessage