|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.webmsg.publisher.jndijms.JmsWebMsg
public abstract class JmsWebMsg
Abstract JMS implementation of a Web Message. For use with WebSphere Service Integration Bus.
Constructor Summary | |
---|---|
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 | |
---|---|
abstract java.lang.Object |
getData()
Get data as Object |
java.lang.String |
getDestination()
Get destination |
int |
getJmsDeliveryMode()
Gets the JMS DeliveryMode constant for this event. |
abstract javax.jms.Message |
getJmsMessage(javax.jms.Session session)
Given a JMS session, return new JMS message for this web message. |
int |
getJmsPriority()
Gets the JMS Priority constant for this event, in the range 0-9. |
long |
getJmsTimeToLive()
Gets the JMS Time To Live value for this event in milliseconds. |
long |
getMessageID()
Get message ID. |
java.lang.String |
getMessageType()
Get message type. |
java.lang.String |
getTarget()
Get message target. |
void |
setDestination(java.lang.String dest)
Set destination (SIBus specific) |
void |
setJmsDeliveryMode(int jmsDeliveryMode)
Sets the JMS DeliveryMode constant for this event. |
void |
setJmsPriority(int jmsPriority)
Sets the JMS Priority constant for this event, in the range 0-9. |
void |
setJmsTimeToLive(long jmsTimeToLive)
Sets the JMS Time To Live value for this event in milliseconds. |
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 |
---|
public JmsWebMsg(java.lang.String type, java.lang.String target)
type
- Type of messagetarget
- Target for messagepublic JmsWebMsg(java.lang.String type, java.lang.String destination, java.lang.String target)
type
- Type of messagedestination
- Destination where message should be sent. (SIBus specific)target
- Target for message.public JmsWebMsg(java.lang.String type, java.lang.String destination, java.lang.String target, long messageID)
type
- Type of messagedestination
- Destination where message should be sent. (SIBus specific)target
- Target for messagemessageID
- Message IDMethod Detail |
---|
public abstract java.lang.Object getData()
getData
in interface WebMessage
public abstract javax.jms.Message getJmsMessage(javax.jms.Session session) throws javax.jms.JMSException
session
- Existing JMS session.
javax.jms.JMSException
- If error creating message.public long getMessageID()
getMessageID
in interface WebMessage
public java.lang.String getMessageType()
getMessageType
in interface WebMessage
public java.lang.String getTarget()
getTarget
in interface WebMessage
public java.lang.String getDestination()
public void setDestination(java.lang.String dest)
dest
- public void setTarget(java.lang.String tar)
tar
- public int getJmsDeliveryMode()
DeliveryMode.PERSISTENT
,
DeliveryMode.NON_PERSISTENT
,
Message.DEFAULT_DELIVERY_MODE
public void setJmsDeliveryMode(int jmsDeliveryMode)
DeliveryMode.PERSISTENT
,
DeliveryMode.NON_PERSISTENT
,
Message.DEFAULT_DELIVERY_MODE
public int getJmsPriority()
Message.DEFAULT_PRIORITY
public void setJmsPriority(int jmsPriority)
Message.DEFAULT_PRIORITY
public long getJmsTimeToLive()
Message.DEFAULT_TIME_TO_LIVE
public void setJmsTimeToLive(long jmsTimeToLive)
Message.DEFAULT_TIME_TO_LIVE
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |