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

Reply via email to