You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by horyna <ph...@centrum.cz> on 2013/04/19 14:38:38 UTC
Camel dont set ID for ToDefinition object
Me route:
from(uri)
.routeId(ROUTE_ID)
.validate(body().isInstanceOf(SomeClass.class))
.beanRef(bean, "someMethod")
.marshal(jaxbIn)
.to(uri).id("meID");
Studying Camel source (2.10.4) code i find, that method id("meID") is called
on ValidateDefinition object and this return empty collection for outputs.
This is not expected behavior for me. How to correct it? Must i remember to
wrap the to() method with some other class? With one?
Is this bahavior described somewhere?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-dont-set-ID-for-ToDefinition-object-tp5731143.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel dont set ID for ToDefinition object
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
This sounds like a bug. Feel free to log a JIRA ticket.
The id is supposed to assign the id, of the previous node in the route.
On Fri, Apr 19, 2013 at 2:38 PM, horyna <ph...@centrum.cz> wrote:
> Me route:
> from(uri)
> .routeId(ROUTE_ID)
> .validate(body().isInstanceOf(SomeClass.class))
> .beanRef(bean, "someMethod")
> .marshal(jaxbIn)
> .to(uri).id("meID");
>
> Studying Camel source (2.10.4) code i find, that method id("meID") is called
> on ValidateDefinition object and this return empty collection for outputs.
>
> This is not expected behavior for me. How to correct it? Must i remember to
> wrap the to() method with some other class? With one?
>
> Is this bahavior described somewhere?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-dont-set-ID-for-ToDefinition-object-tp5731143.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen