質問

I am trying to find a way to pass in "destAddr=" in smpp route below, a value that comes from the above sql query in order to import the senders number in the sms destination address but after much search, I can't find a way. How can I save the value I need from the query and then use it dynamically in the smpp option? Any suggestions would be much appreciated.

<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=  " />
役に立ちましたか?

解決

See this FAQ how to use dynamic values when sending to an endpoint in Camel http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top