public class JMSUtils extends Object
Constructor and Description |
---|
JMSUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
convertXMLtoJMSMap(org.apache.axiom.om.OMElement element,
javax.jms.MapMessage message) |
static Map<String,Object> |
getTransportHeaders(javax.jms.Message message,
org.apache.axis2.context.MessageContext msgContext)
Extract transport level headers from JMS message into a Map
|
protected static void |
handleException(String s) |
static String |
inferJMSMessageType(javax.jms.Message msg)
Method to infer the JMS message type.
|
static javax.jms.Destination |
lookupDestination(Context context,
String destinationName,
String destinationType)
Return the JMS destination with the given destination name looked up from the context
|
static void |
setTransportHeaders(org.apache.axis2.context.MessageContext msgContext,
javax.jms.Message message)
Set transport headers from the axis message context, into the JMS message
|
public static String inferJMSMessageType(javax.jms.Message msg)
msg
- the message to be inferredpublic static void convertXMLtoJMSMap(org.apache.axiom.om.OMElement element, javax.jms.MapMessage message) throws javax.jms.JMSException
javax.jms.JMSException
public static void setTransportHeaders(org.apache.axis2.context.MessageContext msgContext, javax.jms.Message message) throws javax.jms.JMSException
msgContext
- the axis message contextmessage
- the JMS Messagejavax.jms.JMSException
- on exceptionpublic static javax.jms.Destination lookupDestination(Context context, String destinationName, String destinationType) throws NamingException
context
- the Context to lookupdestinationName
- name of the destination to be looked updestinationType
- type of the destination to be looked upNamingException
protected static void handleException(String s) throws NamingException
NamingException
public static Map<String,Object> getTransportHeaders(javax.jms.Message message, org.apache.axis2.context.MessageContext msgContext)
message
- JMS messagemsgContext
- axis2 message contextCopyright © 2018 WSO2. All rights reserved.