activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: [camel] using camel spring container
Date Wed, 02 May 2007 17:38:28 GMT
On 5/2/07, dr.jeff <jlansing@systechnologies.com> wrote:
>
> Good stuff.
> It might be useful to be able to refer from the camelContext out into the
> wider Spring beans context (I would find it useful):
>
> <!-- define a URI here -->
> <bean name="foo" class="java.net.URI">
>     <constructor-arg value="jms:queue:cheese.bar"/>
> </bean>
>
> <!-- refer to it here -->
> <bean name=... class=...>
>     <property name="foo" ref="foo"/>
> </bean>
> ...
> <!-- also refer to it inside here -->
> <camelContext>
>   <endpoint id="foo" ref="foo"/>

Great idea!

I've just implemented it as follows...
https://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/endpointReference.xml

where we inject Endpoint instances into a POJO. i.e. you can define
them within a <camelContext> then use them by reference anywhere in
the spring.xml
-- 
James
-------
http://macstrac.blogspot.com/

Mime
View raw message