java - create ProducerTemplate for dynamic uri -
common producertemplate usage declare member , annotate @produce
@produce(uri = "direct:start") protected producertemplate template;
and use simple
string response = (string) template.requestbody(message_body);
what if uri not known @ compile time, how create producertemplate?
i think mean like:
producertemplate template = context.createproducertemplate(); template.requestbody("direct:start",message_body);
Comments
Post a Comment