Hi,
I have a need to send and consume messages from IBM MQ. I have been using
ACTIVE MQ and I will appreciate if an expert could correct the snapshot
shown below:
1. Spring configuration for IBM MQ: (I have been using similar for Active MQ
but would like to confirm if I could use the same for IBM MQ, I only have
replaced
"<bean class="org.apache.activemq.ActiveMQConnectionFactory">"
with
"<bean class="com.ibm.mq.jms.MQConnectionFactory">"
Here is what I have for IBM MQ:
<bean class="org.apache.camel.component.jms.JmsComponent" id="jms">
<property name="connectionFactory">
<bean class="com.ibm.mq.jms.MQConnectionFactory">
<property name="brokerURL" value="localhost"/>
</bean>
</property>
</bean>
After defining this, this is how I intend to define the route:
<route>
<from uri="jms:mymessage"/>
<to uri="stream:out"/>
</route>
where "mymessage" is the name of the queue.
My my code correct and is there anything wrong, please let me know.
Thank you
--
View this message in context:
http://camel.465427.n5.nabble.com/IBM-MQ-and-CAMEL-tp5591661p5591661.html
Sent from the Camel - Users mailing list archive at Nabble.com.