com.ibm.websphere.webmsg.publisher.jndijms

Class JmsWebMsg

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

  1. public abstract class JmsWebMsg
  2. extends java.lang.Object
  3. implements WebMessage
Abstract JMS implementation of a Web Message. For use with WebSphere Service Integration Bus.

Constructor Summary

Constructor and Description
JmsWebMsg(java.lang.String type,java.lang.String target)
Constructor
JmsWebMsg(java.lang.String type,java.lang.String destination,java.lang.String target)
Constructor
JmsWebMsg(java.lang.String type,java.lang.String destination,java.lang.String target,long messageID)
Constructor

Method Summary

Modifier and Type Method and Description
  1. abstract
  2. java.lang.Object
getData()
Get data as Object
  1. java.lang.String
getDestination()
Get destination
  1. int
getJmsDeliveryMode()
Gets the JMS DeliveryMode constant for this event.
  1. abstract
  2. javax.jms.Message
getJmsMessage(javax.jms.Session session)
Given a JMS session, return new JMS message for this web message.
  1. int
getJmsPriority()
Gets the JMS Priority constant for this event, in the range 0-9.
  1. long
getJmsTimeToLive()
Gets the JMS Time To Live value for this event in milliseconds.
  1. long
getMessageID()
Get message ID.
  1. java.lang.String
getMessageType()
Get message type.
  1. java.lang.String
getTarget()
Get message target.
  1. void
setDestination(java.lang.String dest)
Set destination (SIBus specific)
  1. void
setJmsDeliveryMode(int jmsDeliveryMode)
Sets the JMS DeliveryMode constant for this event.
  1. void
setJmsPriority(int jmsPriority)
Sets the JMS Priority constant for this event, in the range 0-9.
  1. void
setJmsTimeToLive(long jmsTimeToLive)
Sets the JMS Time To Live value for this event in milliseconds.
  1. void
setTarget(java.lang.String tar)
set target
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

JmsWebMsg

  1. public JmsWebMsg(java.lang.String type,
  2. java.lang.String target)
Constructor
Parameters:
type - Type of message
target - Target for message

JmsWebMsg

  1. public JmsWebMsg(java.lang.String type,
  2. java.lang.String destination,
  3. java.lang.String target)
Constructor
Parameters:
type - Type of message
destination - Destination where message should be sent. (SIBus specific)
target - Target for message.

JmsWebMsg

  1. public JmsWebMsg(java.lang.String type,
  2. java.lang.String destination,
  3. java.lang.String target,
  4. long messageID)
Constructor
Parameters:
type - Type of message
destination - Destination where message should be sent. (SIBus specific)
target - Target for message
messageID - Message ID

Method Detail

getData

  1. public abstract java.lang.Object getData( )
Get data as Object
Specified by:
getData in interface WebMessage
Returns:
the data attached to the message as a Java Object.

getJmsMessage

  1. public abstract javax.jms.Message getJmsMessage( javax.jms.Session session)
  2. throws javax.jms.JMSException
Given a JMS session, return new JMS message for this web message.
Parameters:
session - Existing JMS session.
Returns:
JMS Message
Throws:
javax.jms.JMSException - If error creating message.

getMessageID

  1. public long getMessageID()
Get message ID.
Specified by:
getMessageID in interface WebMessage
Returns:
Returns the messageID.

getMessageType

  1. public java.lang.String getMessageType( )
Get message type.
Specified by:
getMessageType in interface WebMessage
Returns:
Message type.

getTarget

  1. public java.lang.String getTarget( )
Get message target.
Specified by:
getTarget in interface WebMessage
Returns:
Returns the topic.

getDestination

  1. public java.lang.String getDestination( )
Get destination
Returns:

setDestination

  1. public void setDestination(java.lang.String dest)
Set destination (SIBus specific)
Parameters:
dest -

setTarget

  1. public void setTarget(java.lang.String tar)
set target
Parameters:
tar -

getJmsDeliveryMode

  1. public int getJmsDeliveryMode()
Gets the JMS DeliveryMode constant for this event.
See Also:
DeliveryMode.PERSISTENT, DeliveryMode.NON_PERSISTENT, Message.DEFAULT_DELIVERY_MODE

setJmsDeliveryMode

  1. public void setJmsDeliveryMode( int jmsDeliveryMode)
Sets the JMS DeliveryMode constant for this event.
See Also:
DeliveryMode.PERSISTENT, DeliveryMode.NON_PERSISTENT, Message.DEFAULT_DELIVERY_MODE

getJmsPriority

  1. public int getJmsPriority()
Gets the JMS Priority constant for this event, in the range 0-9.
See Also:
Message.DEFAULT_PRIORITY

setJmsPriority

  1. public void setJmsPriority(int jmsPriority)
Sets the JMS Priority constant for this event, in the range 0-9.
See Also:
Message.DEFAULT_PRIORITY

getJmsTimeToLive

  1. public long getJmsTimeToLive()
Gets the JMS Time To Live value for this event in milliseconds.
See Also:
Message.DEFAULT_TIME_TO_LIVE

setJmsTimeToLive

  1. public void setJmsTimeToLive(long jmsTimeToLive)
Sets the JMS Time To Live value for this event in milliseconds.
See Also:
Message.DEFAULT_TIME_TO_LIVE