Oh i see what you mean! Indeed, I need to establish a jms connection. I decided to use camel-jms component. Referred this official ibm git example here -> https://github.com/ibm-messaging/mq-cloud-demo/blob/master/aws-backend-request/JMSLambdaFunction/src/main/java/com/example/lambda/ibmmq/JMSLambda.java
Looks like com.ibm.msg.client.jms.JmsConnectionFactory is a good implementation of javax.jms.ConnectionFactory interface as expected by camel-jms. Currently trying to debug and test it with ibm MQ cloud. Am stuck at this error - org.apache.camel.component.jms.DefaultJmsMessageListenerContainer - Setup of JMS message listener invoker failed for destination 'INPUT01' - trying to recover. Cause: JMSWMQ2008: Failed to open MQ queue 'INPUT01'.; nested exception is com.ibm.mq.MQException: JMSCMQ0001: IBM MQ call failed with compcode '2' ('MQCC_FAILED') reason '2035' ('MQRC_NOT_AUTHORIZED') Seems, I am close to success. Just figuring out the last mile.. If anyone has hit upon such errors before, do contribute here. Cheers Reji Mathews On Fri, May 15, 2020 at 12:53 AM Jean-Baptiste Onofre <j...@nanthrax.net> wrote: > Hi, > > What you are describing is direct MQ channel, no MQ JMS. > > It’s possible to use JMS with IBM MQ but using JMS channel. > So, you create the connection factory like this: > > > <bean id="wmqConnectionFactory" > class="com.ibm.mq.jms.MQQueueConnectionFactory"> > > <property name="transportType" value="1" /> > > <property name="hostName" value="${hostname}" /> > > <property name="port" value="${port}" /> > > <property name="queueManager" value="${queuemanager}" /> > > <property name="channel" value="${channel}" /> > > <property name="useConnectionPooling" value="true" /> > > </bean> > And you provide this connection factory to the camel-jms endpoint (using > ?connectionFactory=#wmqConnectionFactory). > > If you want to use directly MQ "native" channel, you can use camel-wmq > component (in camel-extra). > > Regards > JB > > > Le 14 mai 2020 à 19:37, Reji Mathews <contactr...@gmail.com> a écrit : > > > > Hello community > > Has anyone tried connecting to IBM Cloud MQ via camel jms component? I > see > > it needs an implementation of javax.jms.ConnectionFactory. > > One of the implementations provided of above interface by IBM > > is com.ibm.mq.jms.MQConnectionFactory. The MQ cloud provides following > > information with a username and an api key > > > > "platform": "ibmmq-on-cloud", > > "queueManagerName": "DEVMGR", > > "hostname": "*****.mq.appdomain.cloud", > > "listenerPort": 31176, > > "logPort": 32301, > > "applicationChannelName": "*****.APP.SVRCONN", > > "adminChannelName": "*****.ADMIN.SVRCONN", > > "deploymentLocation": "bmx-us-south", > > "webConsoleURL": " > > https://web-devmgr-2e26.qm.us-south.mq.appdomain.cloud/ibmmq/console", > > "messagingREST": "https:// > > **********.qm.us-south.mq > .appdomain.cloud/ibmmq/rest/v1/messaging/qmgr/DEVMGR/queue/(queue_name)/message", > > "adminREST": "https:// > > *****.qm.us-south.mq.appdomain.cloud/ibmmq/rest/v1/admin/qmgr/DEVMGR" > > > > I was wondering if anyone has used camel jms component to connect with > > above information. If so, it would be helpful if someone can explain how > > the ConnectionFactory was configured. > > > > I went through following link : > > > https://camel.465427.n5.nabble.com/Can-Camel-communicate-over-IBM-MQ-sender-receiver-channels-td4429050.html > > but this doesn't look like a case where its connecting to cloud MQ. > > > > Regards > > Reji Mathews > >