You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by aliasrob <al...@gmail.com> on 2009/07/16 22:52:59 UTC
Camel and IBM MQ Series
Hello has anyone ever used Camel with IBM's MQ Series. We are looking at
possible using the two products together but have no example or the two
products working together
Thanks
--
View this message in context: http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24524277.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel and IBM MQ Series
Posted by Claus Ibsen <cl...@gmail.com>.
On Fri, Jul 17, 2009 at 3:41 PM, aliasrob<al...@gmail.com> wrote:
>
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Welcome to the Camel.
>>
>> On Thu, Jul 16, 2009 at 10:52 PM, aliasrob<al...@gmail.com> wrote:
>>>
>>> Hello has anyone ever used Camel with IBM's MQ Series. We are looking at
>>> possible using the two products together but have no example or the two
>>> products working together
>>>
>>
>> My former client uses Camel inside IBM WebSphere 6.0/6.1 and connects
>> to remote MQ servers.
>> And AFAIR also uses the MQ build into IBM WebSphere as well.
>>
>> You should basically just use JNDI lookup to the JMS ConnectionFactory.
>>
>> There is a very basic documentation about it here:
>> http://camel.apache.org/jms.html
>> just search for JNDI
>>
>>
>> And you can also try searching the Camel user forum at nabble for
>> WebSphere
>> http://www.nabble.com/Camel---Users-f36428.html
>>
>>
>>
>>> Thanks
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24524277.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> Thanks for the info Claus, I'll look into both of those links.
It was in fact WebSphere 6.1 they are using as it runs on Java 1.5.
To connect to the remote MQ brokers you need the IBM WebSphere MQ
Client for Java.
As you need MQ specific .jars for the client on the classpath to be
able to communicate with WebSphere MQ.
And you might wanna check up the IBM WebSphereMQ documentation.
They have written a little how to use Spring JMS with MQ
http://www.ibm.com/developerworks/web/library/wa-spring4/
Try googling a bit more. This was just one of the first hit I found.
Camel uses Spring JMS under the covers, so when you got it working
with Spring JMS you got it working with Camel.
The key is the connection factory.
> --
> View this message in context: http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24534653.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: Camel and IBM MQ Series
Posted by aliasrob <al...@gmail.com>.
Claus Ibsen-2 wrote:
>
> Hi
>
> Welcome to the Camel.
>
> On Thu, Jul 16, 2009 at 10:52 PM, aliasrob<al...@gmail.com> wrote:
>>
>> Hello has anyone ever used Camel with IBM's MQ Series. We are looking at
>> possible using the two products together but have no example or the two
>> products working together
>>
>
> My former client uses Camel inside IBM WebSphere 6.0/6.1 and connects
> to remote MQ servers.
> And AFAIR also uses the MQ build into IBM WebSphere as well.
>
> You should basically just use JNDI lookup to the JMS ConnectionFactory.
>
> There is a very basic documentation about it here:
> http://camel.apache.org/jms.html
> just search for JNDI
>
>
> And you can also try searching the Camel user forum at nabble for
> WebSphere
> http://www.nabble.com/Camel---Users-f36428.html
>
>
>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24524277.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
Thanks for the info Claus, I'll look into both of those links.
--
View this message in context: http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24534653.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel and IBM MQ Series
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Welcome to the Camel.
On Thu, Jul 16, 2009 at 10:52 PM, aliasrob<al...@gmail.com> wrote:
>
> Hello has anyone ever used Camel with IBM's MQ Series. We are looking at
> possible using the two products together but have no example or the two
> products working together
>
My former client uses Camel inside IBM WebSphere 6.0/6.1 and connects
to remote MQ servers.
And AFAIR also uses the MQ build into IBM WebSphere as well.
You should basically just use JNDI lookup to the JMS ConnectionFactory.
There is a very basic documentation about it here:
http://camel.apache.org/jms.html
just search for JNDI
And you can also try searching the Camel user forum at nabble for WebSphere
http://www.nabble.com/Camel---Users-f36428.html
> Thanks
> --
> View this message in context: http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24524277.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: Camel and IBM MQ Series
Posted by aliasrob <al...@gmail.com>.
Claus Ibsen-2 wrote:
>
> Hi Jason
>
> Thanks a lot for sharing this. I have added a link from the Camel JMS
> documentation to this post at nabble so others can find your solution
> in the future.
>
>
> On Fri, Jul 17, 2009 at 9:23 PM, Jason Queen<Ja...@colinx.com>
> wrote:
>>
>> I recently went through figuring out how to use MQ with camel 1.6. Below
>> is
>> how I did it. Hope it helps.
>>
>>
>> MQQueueConnectionFactory cf = new MQQueueConnectionFactory();
>>
>> JmsConfiguration jc = new JmsConfiguration(cf);
>>
>> cf.setHostName("server");
>> cf.setPort( 1415);
>> cf.setQueueManager( "queueManager");
>> cf.setChannel("channel");
>> cf.setTransportType(1);
>>
>> // org.springframework.jms.connection.JmsTransactionManager102
>> JmsTransactionManager102 jtm = new JmsTransactionManager102(cf,
>> false);
>>
>> JmsComponent ibmmq = new JmsComponent(jc);
>>
>> ibmmq.setAcknowledgementModeName("AUTO_ACKNOWLEDGE");
>> ibmmq.setUseVersion102(true);
>>
>> // make it transacted
>> ibmmq.setTransacted(true);
>> ibmmq.setTransactionManager(jtm);
>>
>> CamelContext camel = new DefaultCamelContext();
>> camel.addComponent("ibmmq", ibmmq);
>>
>> camel.addRoutes( new RouteBuilder() {
>> public void configure() {
>>
>> from("ibmmq:TEST.QUEUE").to("file://C:/cameltest");
>> }
>> });
>>
>> camel.start();
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24540278.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>
WOW thanks for all the great help. I was expecting maybe just a link or a
few words on how you could did up the information myself but this is just
great.
Thanks again
Rob
--
View this message in context: http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24569967.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel and IBM MQ Series
Posted by dharshan <cd...@gmail.com>.
Thanks lot its help me lot
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-and-IBM-MQ-Series-tp476223p5756568.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel and IBM MQ Series
Posted by Claus Ibsen <cl...@gmail.com>.
Hi Jason
Thanks a lot for sharing this. I have added a link from the Camel JMS
documentation to this post at nabble so others can find your solution
in the future.
On Fri, Jul 17, 2009 at 9:23 PM, Jason Queen<Ja...@colinx.com> wrote:
>
> I recently went through figuring out how to use MQ with camel 1.6. Below is
> how I did it. Hope it helps.
>
>
> MQQueueConnectionFactory cf = new MQQueueConnectionFactory();
>
> JmsConfiguration jc = new JmsConfiguration(cf);
>
> cf.setHostName("server");
> cf.setPort( 1415);
> cf.setQueueManager( "queueManager");
> cf.setChannel("channel");
> cf.setTransportType(1);
>
> // org.springframework.jms.connection.JmsTransactionManager102
> JmsTransactionManager102 jtm = new JmsTransactionManager102(cf,
> false);
>
> JmsComponent ibmmq = new JmsComponent(jc);
>
> ibmmq.setAcknowledgementModeName("AUTO_ACKNOWLEDGE");
> ibmmq.setUseVersion102(true);
>
> // make it transacted
> ibmmq.setTransacted(true);
> ibmmq.setTransactionManager(jtm);
>
> CamelContext camel = new DefaultCamelContext();
> camel.addComponent("ibmmq", ibmmq);
>
> camel.addRoutes( new RouteBuilder() {
> public void configure() {
> from("ibmmq:TEST.QUEUE").to("file://C:/cameltest");
> }
> });
>
> camel.start();
>
> --
> View this message in context: http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24540278.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus
Re: Camel and IBM MQ Series
Posted by Jason Queen <Ja...@colinx.com>.
I recently went through figuring out how to use MQ with camel 1.6. Below is
how I did it. Hope it helps.
MQQueueConnectionFactory cf = new MQQueueConnectionFactory();
JmsConfiguration jc = new JmsConfiguration(cf);
cf.setHostName("server");
cf.setPort( 1415);
cf.setQueueManager( "queueManager");
cf.setChannel("channel");
cf.setTransportType(1);
// org.springframework.jms.connection.JmsTransactionManager102
JmsTransactionManager102 jtm = new JmsTransactionManager102(cf,
false);
JmsComponent ibmmq = new JmsComponent(jc);
ibmmq.setAcknowledgementModeName("AUTO_ACKNOWLEDGE");
ibmmq.setUseVersion102(true);
// make it transacted
ibmmq.setTransacted(true);
ibmmq.setTransactionManager(jtm);
CamelContext camel = new DefaultCamelContext();
camel.addComponent("ibmmq", ibmmq);
camel.addRoutes( new RouteBuilder() {
public void configure() {
from("ibmmq:TEST.QUEUE").to("file://C:/cameltest");
}
});
camel.start();
--
View this message in context: http://www.nabble.com/Camel-and-IBM-MQ-Series-tp24524277p24540278.html
Sent from the Camel - Users mailing list archive at Nabble.com.