You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sebastian Gomez <sa...@gmail.com> on 2008/02/27 11:23:25 UTC
Help with WireTap please! (Noob)
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.
Re: Help with WireTap please! (Noob)
Posted by Jonathan Anstey <ja...@gmail.com>.
Sebastian Gomez wrote:
> Thanks a lot, now it deploys perfectly in Servicemix. Is it possible for you
> to send me a link to the new XSD so I can see any other changes there have
> been? And if it is not too much asking, is there some info somewhere to do
> something like:
>
> from(....).convertBodyTo(DOMSource.class).to(....)
>
> using the camelContext.xml?
>
I think this is still an open issue :(
> I'd really appreciate the XSD, I spent quite some time this morning looking
> for the latest version, without success.
>
Please see http://activemq.apache.org/camel/xml-reference.html for all
Camel related XSDs.
> Sebastian Gomez
>
>
> On Wed, Feb 27, 2008 at 2:00 PM, James Strachan <ja...@gmail.com>
> wrote:
>
>
>> On 27/02/2008, Sebastian Gomez <sa...@gmail.com> wrote:
>>
>>> 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.htmlformat)
>>>
>>> <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>
>>>
>> Sorry this is old XML from 1.0.0; we've since changed this to use
>> JAXB2 and create a nice XSD and during the transition the XML changed
>> a little. Try this...
>>
>> <route>
>> <from uri="jbi:service:http://my.namespace//wiretap" />
>> <to uri="jbi:service:http://my.namespace//destination1"/>
>> <to uri="jbi:service:http://my.namespace//destination2"/>
>> </route>
>>
>>
>> --
>> James
>> -------
>> http://macstrac.blogspot.com/
>>
>> Open Source Integration
>> http://open.iona.com
>>
>>
>
>
Re: Help with WireTap please! (Noob)
Posted by Sebastian Gomez <sa...@gmail.com>.
Thanks a lot, now it deploys perfectly in Servicemix. Is it possible for you
to send me a link to the new XSD so I can see any other changes there have
been? And if it is not too much asking, is there some info somewhere to do
something like:
from(....).convertBodyTo(DOMSource.class).to(....)
using the camelContext.xml?
I'd really appreciate the XSD, I spent quite some time this morning looking
for the latest version, without success.
Sebastian Gomez
On Wed, Feb 27, 2008 at 2:00 PM, James Strachan <ja...@gmail.com>
wrote:
> On 27/02/2008, Sebastian Gomez <sa...@gmail.com> wrote:
> > 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.htmlformat)
> >
> > <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>
>
> Sorry this is old XML from 1.0.0; we've since changed this to use
> JAXB2 and create a nice XSD and during the transition the XML changed
> a little. Try this...
>
> <route>
> <from uri="jbi:service:http://my.namespace//wiretap" />
> <to uri="jbi:service:http://my.namespace//destination1"/>
> <to uri="jbi:service:http://my.namespace//destination2"/>
> </route>
>
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://open.iona.com
>
Re: Help with WireTap please! (Noob)
Posted by Jon Anstey <ja...@gmail.com>.
Try this out:
<route>
<from uri="jbi:endpoint:hello:routingService:validationEndpoint" />
<to uri="jbi:service:hello:BeanService"/>
<to uri="jbi:service:hello:JMSProviderService"/>
</route>
Cheers,
Jon
On Sat, Jun 14, 2008 at 2:10 PM, sandeep reddy <sa...@in2m.com>
wrote:
>
> Hi James,
>
> I am using camel in my example and implementing wiretap pattern.But no
> luck still upto now.And i have seen this post.
>
> Please correct me if i am wrong:
>
> Using below eip pattern it is working fine.But i am not getting how to
> do using camel
>
> <eip:wire-tap service="hello:routingService"
> endpoint="validationEndpoint">
> <eip:target>
> <eip:exchange-target service="hello:BeanService" />
> </eip:target>
> <eip:inListener>
> <eip:exchange-target service="hello:JMSProviderService" />
> </eip:inListener>
> </eip:wire-tap>
>
> I need to implement this in camel.How can i do?
>
> My JMSProviderService (mep=in-only) and my BeanService (in-out).I got
> stuck,
> help me out.
>
> Sandeep.
>
>
> James.Strachan wrote:
> >
> > On 27/02/2008, Sebastian Gomez <sa...@gmail.com> wrote:
> >> 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>
> > Sorry this is old XML from 1.0.0; we've since changed this to use
> > JAXB2 and create a nice XSD and during the transition the XML changed
> > a little. Try this...
> >
> > <route>
> > <from uri="jbi:service:http://my.namespace//wiretap" />
> > <to uri="jbi:service:http://my.namespace//destination1"/>
> > <to uri="jbi:service:http://my.namespace//destination2"/>
> > </route>
> >
> >
> > --
> > James
> > -------
> > http://macstrac.blogspot.com/
> >
> > Open Source Integration
> > http://open.iona.com
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Help-with-WireTap-please%21-%28Noob%29-tp15710292s22882p17841470.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
Re: Help with WireTap please! (Noob)
Posted by sandeep reddy <sa...@in2m.com>.
Hi James,
I am using camel in my example and implementing wiretap pattern.But no
luck still upto now.And i have seen this post.
Please correct me if i am wrong:
Using below eip pattern it is working fine.But i am not getting how to
do using camel
<eip:wire-tap service="hello:routingService"
endpoint="validationEndpoint">
<eip:target>
<eip:exchange-target service="hello:BeanService" />
</eip:target>
<eip:inListener>
<eip:exchange-target service="hello:JMSProviderService" />
</eip:inListener>
</eip:wire-tap>
I need to implement this in camel.How can i do?
My JMSProviderService (mep=in-only) and my BeanService (in-out).I got stuck,
help me out.
Sandeep.
James.Strachan wrote:
>
> On 27/02/2008, Sebastian Gomez <sa...@gmail.com> wrote:
>> 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>
> Sorry this is old XML from 1.0.0; we've since changed this to use
> JAXB2 and create a nice XSD and during the transition the XML changed
> a little. Try this...
>
> <route>
> <from uri="jbi:service:http://my.namespace//wiretap" />
> <to uri="jbi:service:http://my.namespace//destination1"/>
> <to uri="jbi:service:http://my.namespace//destination2"/>
> </route>
>
>
> --
> James
> -------
> http://macstrac.blogspot.com/
>
> Open Source Integration
> http://open.iona.com
>
>
--
View this message in context: http://www.nabble.com/Help-with-WireTap-please%21-%28Noob%29-tp15710292s22882p17841470.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Help with WireTap please! (Noob)
Posted by James Strachan <ja...@gmail.com>.
On 27/02/2008, Sebastian Gomez <sa...@gmail.com> wrote:
> 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>
Sorry this is old XML from 1.0.0; we've since changed this to use
JAXB2 and create a nice XSD and during the transition the XML changed
a little. Try this...
<route>
<from uri="jbi:service:http://my.namespace//wiretap" />
<to uri="jbi:service:http://my.namespace//destination1"/>
<to uri="jbi:service:http://my.namespace//destination2"/>
</route>
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com