m子流如何在入站路径中创建变量?

时间:2018-10-08 08:07:13

标签: java mule mule-esb

我想在servlet:inbound-endpoint

中读取代码的值

如何使入站接收代码的不同值?

<flow name="VoucherAtmPage" processingStrategy="synchronous">
    <servlet:inbound-endpoint path="/voucher/atm/paycode/#[codes]"
        responseTimeout="210000" connector-ref="servletConnector" />

     <logger message="#[message.inboundProperties.'http.uri.params'.codes]" 
     level="INFO" doc:name="Logger"/>    
</flow>

我在启动服务器时得到了此代码

Caused by: org.mule.api.endpoint.MalformedEndpointException: The endpoint 
"servlet:///voucher/atm/paycode/#[codes]" is malformed and cannot be parsed.
 If this is the name of a global endpoint, check the name is correct, that 
the endpoint exists, and that you are using the correct configuration (eg
the "ref" attribute).  Note that names on inbound and outbound endpoints
cannot be used to send or receive messages; use a named global endpoint
instead.. Only Outbound endpoints can be dynamic
   at org.mule.endpoint.AbstractEndpointBuilder.doBuildInboundEndpoint(AbstractEndpointBuilder.java:183)
   at org.mule.endpoint.AbstractEndpointBuilder.buildInboundEndpoint(AbstractEndpointBuilder.java:117)
   at org.mule.endpoint.DefaultEndpointFactory.getInboundEndpoint(DefaultEndpointFactory.java:83)
   at org.mule.config.spring.factories.InboundEndpointFactoryBean.doGetObject(InboundEndpointFactoryBean.java:49)
   at org.mule.config.spring.factories.AbstractEndpointFactoryBean.getObject(AbstractEndpointFactoryBean.java:43)
   at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
   ... 49 more

0 个答案:

没有答案