public class MessageUtil
extends java.lang.Object
Constructor and Description |
---|
MessageUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
compressMessage(byte[] messageBody) |
static org.jdom.Document |
convertBytesToRecoveryData(byte[] data,
java.util.Map msgProperties)
Builds JMSRecovery message from incoming byte data
|
static JMSData |
convertRecoveryDataToJMSData(java.lang.String filename,
boolean isCompress)
Reads saved JMSRecovery file and converts corrosponding JMS Data object.
|
static JMSData |
createJMSData(javax.jms.Message msg) |
static javax.jms.Message |
createMessage(JMSData data,
javax.jms.Session session) |
static void |
emailQueueError(QueueEmailInfo queueEmailInfo,
java.lang.Exception t,
java.lang.String errorMsgGroup,
java.lang.String errorMsgKey,
java.lang.String queueName)
Email the incoming error having error file name info in the email.
|
static java.lang.String |
generateUniqueID() |
static java.lang.String |
getJMSREcoveryFileName(java.util.Map msgProperties) |
static java.util.Map<java.lang.String,java.lang.String> |
getProperties(javax.jms.Message msg) |
static QueueEmailInfo |
getQueueEmailInfo(QueueConfig queueConfig) |
static boolean |
queueEmailToBeSent(java.util.Map msgProperties)
Check if email needs to go out or it's already been sent depending upon
if error file exists for a given queue or not
|
static byte[] |
uncompressMessage(byte[] cdata,
int uncompressedLength) |
public static java.lang.String generateUniqueID()
public static byte[] uncompressMessage(byte[] cdata, int uncompressedLength) throws MXException
MXException
public static byte[] compressMessage(byte[] messageBody) throws MXException
MXException
public static java.util.Map<java.lang.String,java.lang.String> getProperties(javax.jms.Message msg) throws MXException
MXException
public static JMSData createJMSData(javax.jms.Message msg) throws MXException
MXException
public static javax.jms.Message createMessage(JMSData data, javax.jms.Session session) throws MXException
MXException
public static QueueEmailInfo getQueueEmailInfo(QueueConfig queueConfig)
public static boolean queueEmailToBeSent(java.util.Map msgProperties) throws java.rmi.RemoteException, MXException
MXException
java.rmi.RemoteException
public static void emailQueueError(QueueEmailInfo queueEmailInfo, java.lang.Exception t, java.lang.String errorMsgGroup, java.lang.String errorMsgKey, java.lang.String queueName)
public static java.lang.String getJMSREcoveryFileName(java.util.Map msgProperties) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static org.jdom.Document convertBytesToRecoveryData(byte[] data, java.util.Map msgProperties) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public static JMSData convertRecoveryDataToJMSData(java.lang.String filename, boolean isCompress) throws MXException
MXException