Thanks for the hint Claus!  I constructed the endpoint uri before sending
the message to the queue in the header and then using the
recipientList(header("header name").

Thanks again,
Raheem

On Mon, Aug 20, 2012 at 2:10 AM, Claus Ibsen-2 [via Camel] <
[email protected]> wrote:

> Hi
>
> Take a look at this FAQ
> http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
>
>
> On Mon, Aug 20, 2012 at 6:24 AM, raheem <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5717679&i=0>>
> wrote:
>
> > Hi,
> > I am sure this is possible, but can't figure out how.  Here is the
> scenario:
> > 1.  I need to read a list of directories from a remote server
> > 2.  I need to create a jms message and send it to a queue for each
> directory
> > 3.  I need to read the jms messages off the queue and retrieve each
> > directory to store locally
> >
> > I have accomplished #1 and #2 by using the ssh module and then using a
> > processor to tokenize the returned string and have successfully sent it
> to
> > the queue.  I am stuck on number 3.  I basically need to do something
> like
> > this:
> > fromfrom("jms:test.queue").to("sftp://someUser@server/"; + message body
> >
> +"?password=somePassword&binary=true&delay=60000").to("file://target/test-reports");
>
> >
> > Any ideas as to how to get the message body from within the to?
> >
> > Thanks,
> > Raheem
> >
> >
> >
> > --
> > View this message in context:
> http://camel.465427.n5.nabble.com/Creating-endpoint-uri-dynamically-tp5717675.html
> > Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: [hidden email]<http://user/SendEmail.jtp?type=node&node=5717679&i=1>
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://camel.465427.n5.nabble.com/Creating-endpoint-uri-dynamically-tp5717675p5717679.html
>  To unsubscribe from Creating endpoint uri dynamically, click 
> here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5717675&code=cmFoZWVtZGF5YUBnbWFpbC5jb218NTcxNzY3NXw3ODQwMjE2Mg==>
> .
> NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://camel.465427.n5.nabble.com/Creating-endpoint-uri-dynamically-tp5717675p5717708.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to