camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Chaffee" <>
Subject example using produce annoation with ref
Date Wed, 18 Aug 2010 22:53:15 GMT
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.






  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message