Hi,

i would like to dependency inject a CamelTemplate via Spring using the
<camel:camelTemplate> tag and WITHOUT using an @EndpointInject annotation.

I tried to use

<camel:camelTemplate id="myCamelTemplate"
defaultEndpoint="direct:myEndpoint" />

<bean id=".." class="..">
  <property name="camelTemplate" ref="myCamelTemplate"
</bean>

but this is not possible and I can't find out how to do this.

And i can't find, what the <camel:camelTemplate> tag is for.

And what do i have to do, if i have more than one Camel context in a Spring
context ?

Btw: 
I know i can use <bean id="myCamelTemplate" 
class="...CamelTemplate"><constructor-arg...</>

Thx for help

-- 
View this message in context: 
http://www.nabble.com/spring-camel%3AcamelTemplate-question-tp15901023s22882p15901023.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to