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 05:49:38 GMT
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

Mime
View raw message