[ 
https://issues.apache.org/jira/browse/CAMEL-6250?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703040#comment-13703040
 ] 

Claus Ibsen commented on CAMEL-6250:
------------------------------------

Yeah Babak is right that this is working as designed. If you want to assign an 
id to an endpoint, then use <endpoint>. 

On the Exchange the user can use getFromRouteId to get the id of the route.
So the user should do

{code}
<route id="ussd-1">
  <from url="jetty:http://localhost:8888/ussdService?sessionSupport=true"/>
  ...
</route>
{code}

And to get the id
{code}
String id = exchange.getFromRouteId();
{code}
                
> Setting id on endpoint in <from> may not work
> ---------------------------------------------
>
>                 Key: CAMEL-6250
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6250
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring
>    Affects Versions: 2.10.0
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.7, 2.11.2, 2.12.0
>
>         Attachments: CAMEL-6250.patch
>
>
> See nabble
> http://camel.465427.n5.nabble.com/How-to-get-Id-of-an-Endpoint-tp5730470.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to