1

我正在尝试从 smsc 接收 DELIVER_SM。静态创建 smpp 路由的第一段代码工作得很好。但后来,我想收听多个 smpp 路由,这些路由是使用 SQL 查询返回的凭据动态创建的,所以我编写了第二个片段,我认为它可以正常运行,但是路由没有到达 printPdus 方法我可以在哪里看到 DELIVER_SM。该片段不起作用,因为它不是以 smpp 作为“来自 uri="smpp://..."” 的消费者开始的?我怎么能做这样的事情,但使用 spring 动态创建 smpp 路由。

<route id="Report-route">
  <from uri="smpp://${pdus.systemid}@${pdus.address}:${pdus.port}?password=${pdus.password}" />
  <to uri="bean:SmsReceiver?method=printPdus" />
</route>


<route id="Report-route">
  <from uri="sql:{{sql.selectReceivingRoutes}}" />
  <to uri="bean:SmsReceiver?method=createReceivingRoutes" />
  <recipientList>
    <header>receiverRoutes</header>
  </recipientList>
  <to uri="bean:SmsReceiver?method=printPdus" />
</route>
4

0 回答 0