Hi,
I would look into using a routing slip here as well. Depending on how
dynamic your endpoints are you can poll the database using a timer, retrieve
your endpoints, havw a bean processor that creates a routing slip header,
and then send the exchange to the routing slip.
This could work if you k
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
Hi Claus,
Thanks for the reply. It really helpful.
--
View this message in context:
http://camel.465427.n5.nabble.com/Dynamic-source-endpoint-tp5682267p5685285.html
Sent from the Camel - Users mailing list archive at Nabble.com.
You can add routes at runtime to a running Camel.
If you using Java then you can have a RouteBuilder class as a
template, and then maybe some getter/setter for the uris.
And then reference those uris in the configure() method where you use
the Java DSL.
On Thu, May 3, 2012 at 9:53 AM, 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().to("activemq://queue:output")
Thanks
--
View this message in context:
http://camel.46542
On Thu, May 3, 2012 at 6:52 AM, agustino wrote:
> Hi All,
>
> I have a case like this:
> - retrieve source from database (it will return multiple values)
> - read the file from the sources
> - route the message to queue.
>
And is there a question in there?
If you want people to participate in yo