camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: how to do that in camel xml ?
Date Thu, 04 Oct 2007 11:33:33 GMT
On 04/10/2007, Guillaume Nodet <gnodet@gmail.com> wrote:
> You need to use a reference to a spring bean.
> Something like
>
>   <route xmlns="camel">
>     <from uri="xxx" />
>     <process ref="mybean/>
>    ...
>   </route>
>
>   <bean id="myBean" class="xxx">
>      ..
>   </bean>

BTW I just added a JUnit test case showing how to invoke a processor via XML

https://svn.apache.org/repos/asf/activemq/camel/trunk/components/camel-spring/src/test/resources/org/apache/camel/spring/processor/transform.xml

You can as well use the <bean ref=""/> tag as well to invoke any Java
Bean and then use the bean integration to invoke a method etc.

http://activemq.apache.org/camel/bean-integration.html
-- 
James
-------
http://macstrac.blogspot.com/

Open Source SOA
http://open.iona.com

Mime
View raw message