camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vanshul.Chawla <Vanshul.Cha...@target.com>
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.jms.support.destination.DestinationResolver
import org.springframework.stereotype.Component

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

@Component
class JmsDestinationResolver implements DestinationResolver {

    @Override
    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

@Bean
    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 = jmsComponentBuilder.build()
        jmsComponent.setDestinationResolver(jmsDestinationResolver)
        jmsComponent
    }

-----Original Message-----
From: ravi21588 [mailto:ravi21588@gmail.com] 
Sent: Monday, March 13, 2017 9:44 AM
To: users@camel.apache.org
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: http://camel.465427.n5.nabble.com/Unable-to-set-JMS-IBM-MQMD-ApplIdentityData-using-camel-tp5793781p5795366.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message