Hi,

I do not understand what it is you are trying to do in this example. Why do
you need to create a Polling consumer???

The Camel JMS Endpoint is designed to give you a message when one arrive on
the queue. I do not understand the value of polling for a JMS message. The
whole point of using JMS is to have guaranteed delivery without the need to
do any polling. The message is delivered when the consumer connects to the
broker and specifies the queue he needs messages from...

All you need is to have a simple Camel route that does
      from("activemq:queue:foobar")
           .to("file:c:/inbox/out.text")
 
What I have listed above should do what you need it to do. If there is a
some architectural need I have failed to understand, please let me know.

Cheers,

Ashwin...

-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com 

Blog: http://opensourceknowledge.blogspot.com 
CamelOne 2011: http://fusesource.com/camel2011 
---------------------------------------------------------
--
View this message in context: 
http://camel.465427.n5.nabble.com/Problem-writing-message-to-file-tp4407362p4407774.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to