Re: [camel] using camel spring container

2007-05-04 Thread James Strachan
On 5/3/07, dr.jeff <[EMAIL PROTECTED]> wrote: Very good, excellent even, and nearly working. :) This: http://activemq.apache.org/camel/schema/camel-1.0.xsd";>

Re: [camel] using camel spring container

2007-05-03 Thread dr.jeff
Very good, excellent even, and nearly working. This: http://activemq.apache.org/camel/schema/camel-1.0.xsd";> gives this: Exception in thread "

Re: [camel] using camel spring container

2007-05-03 Thread James Strachan
On 5/3/07, dr.jeff <[EMAIL PROTECTED]> wrote: http://activemq.apache.org/camel/schema/camel-1.0.xsd";> This looks good, but how do I use it? I've tried things like: and and and Ah I'd not done that bit yet :) I'd done it so that you can refer to Endpoint instances as

Re: [camel] using camel spring container

2007-05-02 Thread dr.jeff
http://activemq.apache.org/camel/schema/camel-1.0.xsd";> This looks good, but how do I use it? I've tried things like: and and and https://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/endpointReference.xml > > whe

Re: [camel] using camel spring container

2007-05-02 Thread dr.jeff
I was thinking about referring the other direction. In particular, I was looking for a way to avoid repeating complicated URIs within the camelContext. But if you allow references to endpoints within the camelContext, that would probabably be good enough. James.Strachan wrote: > > On 5/2/07, dr

Re: [camel] using camel spring container

2007-05-02 Thread James Strachan
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): ... Great idea! I've just implemented it as follows... https://svn.apache.org/repos/a

Re: [camel] using camel spring container

2007-05-02 Thread dr.jeff
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): ... ... James.Strachan wrote: > > Yeah, we could definitely have some kinda mechanism like that. Maybe > > > > > >

Re: [camel] using camel spring container

2007-05-02 Thread James Strachan
On 5/1/07, dr.jeff <[EMAIL PROTECTED]> wrote: It would help to avoid these kind of errors if there was some mechanism in place to refer to URIs by reference, somewhat in the way that Spring refs work. If I have: then I can do: ... because I have more than

Re: [camel] using camel spring container

2007-05-01 Thread dr.jeff
It would help to avoid these kind of errors if there was some mechanism in place to refer to URIs by reference, somewhat in the way that Spring refs work. If I have: then I can do: ... because I have more than one flow using transformers. My suggestion is

Re: [camel] using camel spring container

2007-05-01 Thread James Strachan
BTW I've created a little test case for this kinda use case... https://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingProcessor.xml https://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/java/org/apache/camel

Re: [camel] using camel spring container

2007-04-30 Thread dr.jeff
My xml looks like this: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation=" http://www.springframework.org/schema/beans ./spring-beans-2.0.xsd http://activemq.apache.org/camel/schema/camel-1.0.xsd ./camel-1.0.xsd

Re: [camel] using camel spring container

2007-04-30 Thread dr.jeff
Yes. That works now. Thanks. James.Strachan wrote: > > On 4/30/07, dr.jeff <[EMAIL PROTECTED]> wrote: >> >> If I use the example at: >> >> http://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTes

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
On 4/30/07, dr.jeff <[EMAIL PROTECTED]> wrote: If I use the example at: http://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTest.xml then I get this exception Exception in thread "main" org.s

Re: [camel] using camel spring container

2007-04-30 Thread dr.jeff
If I use the example at: http://svn.apache.org/repos/asf/activemq/camel/trunk/camel-spring/src/test/resources/org/apache/camel/spring/routingUsingCamelContextFactoryWithNamespacesTest.xml then I get this exception Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitio

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
BTW to try and avoid future confusion, I've added some Spring documentation... http://cwiki.apache.org/CAMEL/spring.html -- James --- http://macstrac.blogspot.com/

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
On 4/30/07, James Strachan <[EMAIL PROTECTED]> wrote: On 4/29/07, dr.jeff <[EMAIL PROTECTED]> wrote: > I have tried and completely failed to use the camel spring container. > > I see where it can do two things: > > 1) create a context which instantiates RouteBuilders in a given package: > >

Re: [camel] using camel spring container

2007-04-30 Thread James Strachan
On 4/29/07, dr.jeff <[EMAIL PROTECTED]> wrote: I have tried and completely failed to use the camel spring container. I see where it can do two things: 1) create a context which instantiates RouteBuilders in a given package: I can't even guess what the need for that is, unless it's ju