camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Websphere MQ setting targetClient=1
Date Thu, 11 Mar 2010 16:53:42 GMT
Hi

Its a generic WebSphereMQ issue how to configure this with Spring JMS.
Try googling and search a bit wider.


On Thu, Mar 11, 2010 at 5:51 PM, Jason Queen <Jason.Queen@colinx.com> wrote:
>
> I've been searching the form for quit some time now.  The closest post i've
> found to set the targetClient on an endpoint is this.
>
> http://old.nabble.com/Bridging-the-ActiveMQ-with-IBM-Websphere-using-Camel-td19623329.html#a19646763
>
> At the end you explain how to set the transactionType on the connection
> factory but that is different then setting the targetClient on the Queue.
>
> I also found one where a discussion is being discussed to be about to
> configure the endpoint.
>
> http://old.nabble.com/Camel-to-Websphere-MQ-communication-td20834360.html#a20834360
>
> There doesn't seem to be a solution in the post.
>
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> Search this forum as I think IBM MQ have been debated before, and how
>> to get it working.
>>
>>
>> On Thu, Mar 11, 2010 at 12:17 AM, Jason Queen <Jason.Queen@colinx.com>
>> wrote:
>>>
>>> With camel 1.6.1 I'm trying to set the targetClient=1 for a queue
>>> connection.
>>> Here is the code im using to try to accomplish this but it doesnt work:
>>>
>>>        MQQueueConnectionFactory cf = new MQQueueConnectionFactory();
>>>
>>>        JmsConfiguration jc = new JmsConfiguration(cf);
>>>
>>>        cf.setHostName("server");
>>>        cf.setPort( 1415);
>>>        cf.setQueueManager( "queueManager");
>>>        cf.setChannel("channel");
>>>        cf.setTransportType(1);
>>>
>>>        JmsTransactionManager102 jtm = new JmsTransactionManager102(cf,
>>> false);
>>>
>>>        JmsComponent ibmmq = new JmsComponent(jc);
>>>
>>>        ibmmq.setAcknowledgementModeName("AUTO_ACKNOWLEDGE");
>>>        ibmmq.setUseVersion102(true);
>>>        ibmmq.setTransacted(true);
>>>        ibmmq.setTransactionManager(jtm);
>>>
>>>        CamelContext camel = new DefaultCamelContext();
>>>
>>>        Map props = new HashMap();
>>>        props.put("targetClient", 1);
>>>        camel.setProperties(props);
>>>
>>>        camel.addComponent("ibmmq", ibmmq);
>>>
>>>        camel.addRoutes( new RouteBuilder() {
>>>                     public void configure() {
>>>
>>>  from("file://C:/cameltest").to("ibmmq:TEST.QUEUE");
>>>                     }
>>>        });
>>>
>>>        camel.start();
>>>
>>> I assume this isn't the correct way to do this.  Does anyone have an
>>> example
>>> of getting it to work with version 1.6.1?
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Websphere-MQ-setting-targetClient%3D1-tp27857263p27857263.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>>
>> --
>> Claus Ibsen
>> Apache Camel Committer
>>
>> Author of Camel in Action: http://www.manning.com/ibsen/
>> Open Source Integration: http://fusesource.com
>> Blog: http://davsclaus.blogspot.com/
>> Twitter: http://twitter.com/davsclaus
>>
>>
>
> --
> View this message in context: http://old.nabble.com/Websphere-MQ-setting-targetClient%3D1-tp27857263p27866178.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message