public class JMSUtils extends Object
| Constructor and Description |
|---|
JMSUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.wso2.carbon.messaging.CarbonMessage |
createJMSCarbonMessage(javax.jms.Message message)
Create a
CarbonMessage using the provided JMS Message. |
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.
|
public static javax.jms.Destination lookupDestination(Context context, String destinationName, String destinationType) throws NamingException
context - the Context to lookup.destinationName - name of the destination to be looked up.destinationType - type of the destination to be looked up.NamingException - if any naming error occurred when looking up destination.public static org.wso2.carbon.messaging.CarbonMessage createJMSCarbonMessage(javax.jms.Message message)
throws JMSConnectorException
CarbonMessage using the provided JMS Message.message - JMS message that need to be changed as carbon message.JMSConnectorException - if error occurred while changing the jms message to carbon message.Copyright © 2019 WSO2. All rights reserved.