activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dr.jeff" <jlans...@systechnologies.com>
Subject Re: [camel] using camel spring container
Date Thu, 03 May 2007 00:54:32 GMT


  <camelContext id="camel"
xmlns="http://activemq.apache.org/camel/schema/camel-1.0.xsd">
    <endpoint id="endpoint1" uri="mock:endpoint1"/>
    <routes>
    </routes>
  </camelContext>

This looks good, but how do I use it?

I've tried things like:

<from uri="endpoint1"/> and <from uri="#endpoint1"/> and <from
endpoint="endpoint1"/> and <from endpoint="#endpoint1/>, but all of them
fail, mostly for different reasons (eg. #endpoint1 is not an NMTOKEN).

Surely it's obvious, but I'm missing it?


James.Strachan wrote:
> 
> 
> 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/
> 
> 

-- 
View this message in context: http://www.nabble.com/-camel--using-camel-spring-container-tf3663875s2354.html#a10297397
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message