Dynamic 动态入站终结点不再可用?

Dynamic 动态入站终结点不再可用?,dynamic,mule,endpoint,inbound,Dynamic,Mule,Endpoint,Inbound,在Mule 2中,我们曾经能够使用以下方法创建动态入站端点: <quartz:endpoint-polling-job> <quartz:job-endpoint address="jms://retry.queue?selector=JMSTimestamp%3C%3D%23[System.currentTimeMillis() - 30000]" /> </quartz:endpoint-polling-job> 在Mule 3中,

在Mule 2中,我们曾经能够使用以下方法创建动态入站端点:

<quartz:endpoint-polling-job>
  <quartz:job-endpoint
       address="jms://retry.queue?selector=JMSTimestamp%3C%3D%23[System.currentTimeMillis() - 30000]" />
</quartz:endpoint-polling-job>

在Mule 3中,我们得到一个错误:

The endpoint "jms://retry.queue?selector=JMSTimestamp<=#[System.currentTimeMillis()
- 30000]" is malformed and cannot be parsed... Only Outbound endpoints can be dynamic

端点”jms://retry.queue?selector=JMSTimestamp您是对的,3.3不再支持这一点

您可以使用
元素在流程开始时包装以下脚本:

<scripting:component>
    <scripting:script engine="groovy">
        muleContext.client.request('jms://retry.queue?selector=JMSTimestamp%3C%3D'+(System.currentTimeMillis() - 30000), eventContext.timeout)
    </scripting:script>
</scripting:component>

muleContext.client.request('jms://retry.queue?selector=JMSTimestamp%3C%3D'+(System.currentTimeMillis()-30000),eventContext.timeout)

感谢您快速而明确的回答。