You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by indrayani <in...@gmail.com> on 2013/07/22 11:31:37 UTC
Regarding TO uri
Hi All,
Is it possible to read To uri in the processor class?
I can get a From uri in the processor class as follows :
exchange.getFromEndpoint().getEndpointUri()
Is there any way to read To uri ?
--
View this message in context: http://camel.465427.n5.nabble.com/Regarding-TO-uri-tp5736012.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Regarding TO uri
Posted by indrayani <in...@gmail.com>.
this worked, thank you very much.
--
View this message in context: http://camel.465427.n5.nabble.com/Regarding-TO-uri-tp5736012p5736254.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Regarding TO uri
Posted by Claus Ibsen <cl...@gmail.com>.
Its
Exchange.TO_ENDPOINT which is the key. eg its a constant on the Exchange.
On Mon, Jul 22, 2013 at 12:03 PM, indrayani <in...@gmail.com> wrote:
> hi,
> i tried as follows but i am gettting null value :
>
> exchange.getProperty("TO_ENDPOINT")
>
> am i missing anything?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Regarding-TO-uri-tp5736012p5736017.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: Regarding TO uri
Posted by indrayani <in...@gmail.com>.
hi,
i tried as follows but i am gettting null value :
exchange.getProperty("TO_ENDPOINT")
am i missing anything?
--
View this message in context: http://camel.465427.n5.nabble.com/Regarding-TO-uri-tp5736012p5736017.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Regarding TO uri
Posted by Claus Ibsen <cl...@gmail.com>.
The last to endpoint uri is stored as a property on the exchange with key
org.apache.camel.Exchange#TO_ENDPOINT
On Mon, Jul 22, 2013 at 11:31 AM, indrayani <in...@gmail.com> wrote:
> Hi All,
> Is it possible to read To uri in the processor class?
> I can get a From uri in the processor class as follows :
>
> exchange.getFromEndpoint().getEndpointUri()
>
> Is there any way to read To uri ?
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Regarding-TO-uri-tp5736012.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen