动态导入驼峰路线中的选项

时间:2013-07-29 14:11:28

标签: sql apache-camel smpp

我正在尝试找到一种方法在下面的smpp路由中传入“destAddr =”,这个值来自上面的sql查询,以便在sms目标地址中导入发件人号码,但经过多次搜索,我可以找不到路。如何从查询中保存我需要的值,然后在smpp选项中动态使用它?任何建议都会非常感激。

<from uri="sql:{{sql.selectRunRecList}}" />
<to uri="bean:smppBean?method=smsConstruct" />
<to uri="sql:{{sql.markSms}}"/>
<to uri="bean:smppBean?method=smsPrintText" />  
<to uri="file:C:/workspace/SMPP/outbox" />   
<to uri="smpp://smppclient@localhost:2775?password=password&amp;destAddr=  " />

1 个答案:

答案 0 :(得分:0)

请参阅此常见问题解答,了解如何在Camel中发送到端点时使用动态值 http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

相关问题