activemq reading problem

2012-09-28 Thread PLANAMENTE Michael EXT-OD
Hi all, my environment: servicemix 4.3.1 fuse 02-05 java 1.6.0_07 camel 2.6 fuse 02-05 activemq 5.4.2.fuse-04-05 I've a strange problem: I have a single monothreadded camel route using camel activemq component to consume messages from a AMQ queue. case 1: consumer is stopped, the queue is

Re: Context Scan with @Configuration and camel-spring-javaconfig

2012-09-28 Thread Willem jiang
Basically, you just need to find out the RouteBuilder classes as you want in Java when you extends the CamelConfiguration class, then you don't need to be bothered by any XML. -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com |

Re: Camel MQ help needed

2012-09-28 Thread Willem jiang
You can enable the trace[1] feature to see if the message is sent to jms endpoint. [1]http://camel.apache.org/tracer.html -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com

Re: activeMQ reading order problem

2012-09-28 Thread Willem jiang
How did you stop the consumer, I'm not sure if the consumer still hold the first message when you stop the consumer. What kind of JMS ACKNOWLEDGE did you use? -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog:

Re: extract data from mutlipe csv file convert to xml

2012-09-28 Thread London12345
Thanks.I have seen the camel bindy documentation but I am unable to find the details about how to skip data from single row.I can only see skipping entire line. For example : CSV file:Claus,Ibsen,Camel in Action 1,2010,35 I just want to pick third element in the row and rest to be ignored.Can

Camel netty - Netty ChannelBuffer classloading issue in Karaf 2.2.9

2012-09-28 Thread declancox
Hi, I have a simple camel route using the netty component (Karaf 2.2.9, Camel 2.10.0 an Netty version 3.5.1.Final). I construct the CamelContext programmatically to take advantage of the OSGi Config Admin Managed Service factory (see my previous post

Re: Camel MQ help needed

2012-09-28 Thread realice
thanks, turns out the mq queue needs a property of targetClient with a value of MQJMS_CLIENT_NONJMS_MQ(1), is there any way i can specify that in camel route? right now i have to uri=jms:REQUEST.QUEUE?replyTo=RESPONSE.QUEUE/ do i just do to

Re: Camel MQ help needed

2012-09-28 Thread Jonathan Anstey
Some options are listed here: http://camel.apache.org/jms.html#JMS-SettingJMSprovideroptionsonthedestination On 12-09-28 02:21 PM, realice wrote: thanks, turns out the mq queue needs a property of targetClient with a value of MQJMS_CLIENT_NONJMS_MQ(1), is there any way i can specify that in

Re: Camel MQ help needed

2012-09-28 Thread Jonathan Anstey
Something like this should do the trick (of course modify with your own URI/destination): ... setHeader headerName=CamelJmsDestinationName constantqueue:///MY_QUEUE?targetClient=1/constant /setHeader to uri=wmq:queue:MY_QUEUE?useMessageIDAsCorrelationID=true/ On 12-09-28 02:53 PM,

Re: Tutorial 1 fails running with exception

2012-09-28 Thread Babak Vahdat
As the comment inside the file already says that: https://svn.apache.org/repos/asf/camel/trunk/examples/camel-example-reportincident/src/main/resources/META-INF/spring/camel-context.xml It is just for demonstration purpose to show how you could invoke the *same* routing in XML-DSL instead of

Re: Camel MQ help needed

2012-09-28 Thread David Karlsen
You can set that option directly on the ibm mq connection factory Den 28. sep. 2012 18:52 skrev realice real...@gmail.com følgende: thanks, turns out the mq queue needs a property of targetClient with a value of MQJMS_CLIENT_NONJMS_MQ(1), is there any way i can specify that in camel route?

Re: Camel MQ help needed

2012-09-28 Thread realice
i tried that too, that's not part of of the property for queueconnection, the setheader worked -- View this message in context: http://camel.465427.n5.nabble.com/Camel-MQ-help-needed-tp5720158p5720220.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: extract data from mutlipe csv file convert to xml

2012-09-28 Thread Christian Müller
@CsvRecord public Class Foo { @DataField(pos = 3) private String bar; ... } should do the trick... Best, Christian On Fri, Sep 28, 2012 at 11:03 AM, London12345 mailtox...@gmail.com wrote: Thanks.I have seen the camel bindy documentation but I am unable to find the details about how