Thanks. <endpoint> makes sense. I guess I missed that in the xsd. I know I have seen that before though, just couldn't find this time around to jog my memory. :)
-----Original Message----- From: Jon Anstey [mailto:[email protected]] Sent: Wednesday, August 18, 2010 4:42 PM To: [email protected] Subject: Re: example using produce annoation with ref There could be an example in the unit tests of the camel-spring module - you may want to check there. You should be able to define an endpoint in the Spring XML file like <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <endpoint id="foo" uri="activemq:queue:foo"/> ... </camelContext> and then ref that endpoint in the annotation. Let me know if this doesn't work. On Wed, Aug 18, 2010 at 8:23 PM, Jason Chaffee <[email protected]> wrote: > I am currently using the produce annotation with the uri attribute. I > would like to change that to use the ref and configure the uri > differently for different apps, so that I can reuse the same producer > code. However, I haven't been able to find an example of doing this > way. Can anyone point me to an example? > > > > @Produce(uri = "activemq:queue:foo") > > MyProducer producer; > > > > Would like it be: > > > > @Produce(ref = "foo") > > MyProducer producer; > > > > And define foo somehow in my spring config xml. > > > > > > Thanks, > > > > Jason > > -- Cheers, Jon Camel in Action: http://manning.com/ibsen Open Source Integration: http://fusesource.com Blog: http://janstey.blogspot.com
