"A bean: endpoint cannot be defined as the input to the route; i.e.
you cannot consume from it, you can only route from some inbound
message Endpoint to the bean endpoint as output."

extracted from Bean Component (http://camel.apache.org/bean.html)


On Fri, May 20, 2011 at 1:47 PM, Kobe <[email protected]> wrote:
> I am trying to compose a route by connecting them via a jms queue.
> The route does not work. messages emitted by the srcText are not
> capture in the destination at all ("data.txt").
>
> can you tell if thre is a mistake in this? I use Camel 2.7.1.
>
>
> <camel:camelContext id="camelContext">
>                <camel:route>
>                        <camel:from uri="bean:srcText" />
>                        <camel:to uri="jms:queue:order" />
>                </camel:route>
>                <camel:route>
>                        <camel:from uri="jms:queue:order" />
>                        <camel:pipeline>
>                                <camel:transform>
>                                        <camel:simple>Hello ${body} how are 
> you?</camel:simple>
>                                </camel:transform>
>                                <camel:to 
> uri="file:/tmp/data/outbox?fileName=data.txt" />
>                        </camel:pipeline>
>                </camel:route>
>        </camel:camelContext>
>
>
> thanking you
>
> Kobe
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Simple-route-with-JMS-queue-is-not-working-tp4411810p4411810.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to