Hi,
use can use pollEnrich to consume a file within a route.
from(sql...)
pollEnrich("file://....")
.to("activemq:myqueue");
look here: http://camel.apache.org/content-enricher.html
Another way could be to call a bean which reads the file and return the
content of the file
from(sql)
.bean(new TestBean())
.to("activemq")
in the TestBean class you have the message which comes from the
sql-request. So you can decide in your bean what file to open.
regards, Marco
Am 03.05.2012 09:53, schrieb agustino:
Hi Claus,
Sorry for my bad question. Basically I am confused how to create multiple
dynamic endpoint to consume the file and do processing of the file.
i.e:
from("sql:select systemfolder from paths").from(<this value is return from
the previous query>).to("activemq://queue:output")
Thanks
--
View this message in context:
http://camel.465427.n5.nabble.com/Dynamic-source-endpoint-tp5682267p5682549.html
Sent from the Camel - Users mailing list archive at Nabble.com.