Class MessageTools
- java.lang.Object
-
- net.timewalker.ffmq4.common.message.MessageTools
-
public final class MessageTools extends Object
Utility functions to copy and normalize JMS messages.
-
-
Constructor Summary
Constructors Constructor Description MessageTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AbstractMessageduplicate(javax.jms.Message srcMessage)Create an independant copy of the given messagestatic AbstractMessagemakeInternalCopy(javax.jms.Message srcMessage)Create an internal copy of the message if necessarystatic AbstractMessagenormalize(javax.jms.Message srcMessage)Convert the message to native type if necessary
-
-
-
Method Detail
-
makeInternalCopy
public static AbstractMessage makeInternalCopy(javax.jms.Message srcMessage) throws javax.jms.JMSException
Create an internal copy of the message if necessary- Throws:
javax.jms.JMSException
-
normalize
public static AbstractMessage normalize(javax.jms.Message srcMessage) throws javax.jms.JMSException
Convert the message to native type if necessary- Throws:
javax.jms.JMSException
-
duplicate
public static AbstractMessage duplicate(javax.jms.Message srcMessage) throws javax.jms.JMSException
Create an independant copy of the given message- Throws:
javax.jms.JMSException
-
-