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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -