camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vanshul.Chawla <>
Subject RE: [EXTERNAL] Re: Unable to set JMS_IBM_MQMD_ApplIdentityData using camel
Date Mon, 13 Mar 2017 15:50:21 GMT
Use this code

import org.springframework.stereotype.Component

import javax.jms.Destination
import javax.jms.JMSException
import javax.jms.Session

class JmsDestinationResolver implements DestinationResolver {

    Destination resolveDestinationName(Session session, String destinationName, boolean pubSubDomain)
throws JMSException {
         session.createQueue("queue:///" + destinationName + "?targetClient=1")

And set destination resolver wherever you create jms component

    JmsComponent queueManager1(){

        JmsComponentBuilder jmsComponentBuilder = new JmsComponentBuilder(channel: wmqProperties.channel1,hostName:
wmqProperties.hostName1, port: wmqProperties.port1,
                transportType: wmqProperties.transportType, username: wmqProperties.username,
password: wmqProperties.password, logStatus: wmqProperties.logStatus, queueManager: wmqProperties.queueManager1)
        JmsComponent jmsComponent =

-----Original Message-----
From: ravi21588 [] 
Sent: Monday, March 13, 2017 9:44 AM
Subject: [EXTERNAL] Re: Unable to set JMS_IBM_MQMD_ApplIdentityData using camel

Hi Santhosh,
Can you please let me know how did you use destination resolver with Apache camel.
Iam using Jboss fuse service works 6.0,in which iam using switchyard as service delivery framework
and camel as implementation.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message