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 -

c# - System.FormatException' occurred in MongoDB.Bson.dll - XXX is not a valid 24 digit hex string -