camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Gomez" <sage...@gmail.com>
Subject Help with WireTap please! (Noob)
Date Wed, 27 Feb 2008 10:23:25 GMT
Hi!

I'm using Camel with Servicemix, and I wanted to implement a Wiretap.
I've tried loads of combinations in the CamelContext.xml file to make
it work, but ServiceMix keeps saying there's something wrong.

For example:  (using http://activemq.apache.org/camel/wire-tap.html format)

<route>
           <from uri= "jbi:service:http://my.namespace//wiretap" />
           <to>
                <uri>jbi:service:http://my.namespace//destination1</uri>
                <uri>jbi:service:http://my.namespace//destination2"</uri>
            </to>
</route>

gives me the following exception in Servicemix:

org.apache.camel.RuntimeCam
elException: java.lang.IllegalArgumentException: Either 'uri' or 'ref' must be s
pecified on: org.apache.camel.impl.RouteContext@1a14be0</loc-message>

I've had a look at the schema defined on
http://activemq.apache.org/camel/schema/spring/camel-spring.xsd but I
can't find the way of putting more than one destination on the "to"
tag.

Any help would be appreciated.

Best regards.

Sebastian Gomez.

Mime
View raw message