On 5/2/07, dr.jeff <[EMAIL PROTECTED]> 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/