Hi Can you be more specific. Which version of Camel are you using? And what Camel components are you using?
The getFromRouteId() is from when the Exchange was *created*, so if you use some internal in-jvm components such as seda, direct, vm etc. then the from route id, will still be from the very first route, where the Exchange was created. On Tue, Nov 15, 2011 at 3:04 AM, xiangqiuzhao <[email protected]> wrote: > i had create two RouteDefinitions, like > > RouteDefinition route = new RouteDefinition(); > route.from().process(); > route.setId(routeIdA); //another route id is routeIdB > > these RouteDefinitions listening at 5090 and 5091 port. > > my client send message to the 5091 port, and i use > exchange.getFromRouteId(); to get the routeId, but > > the routeId is routeIdA, not routeIdB. > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/why-i-get-the-incorrect-routeId-from-Exchange-tp4993170p4993170.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
