我是Mule的新手。
我已经写了java代码(CreateObject)在服务器端创建一些对象。我从客户端的超文本标记语言表单中传递一些参数给Mule,如对象名称、对象大小、对象主机名等。Mule进一步调用java代码(CreateObject)在服务器端创建对象,并返回对象创建成功的响应。
在Mule中,流第一次运行得很好,但在第二次运行时没有成功执行。
以下是我的Mule流程:
<flow name="Object-Create" doc:name="Object-Create">
<http:inbound-endpoint exchange-pattern="request-response" address="http://localhost:8146/Create" contentType="text/html" doc:name="Service-Request">
<http:body-to-parameter-map-transformer doc:name="FormParam-To-Mule"/>
<not-filter>
<wildcard-filter pattern="/favicon.ico"/>
</not-filter>
</http:inbound-endpoint>
<logger level="INFO" doc:name="Form-Display" message="#[payload]" />
<custom-transformer class="Objectclient.CreateObject" doc:name="Call-Server"/>
<logger level="INFO" doc:name="Output-Display" message="#[payload]"/>
<echo-component doc:name="Echo"/>
</flow>当我重启服务时,flow第一次执行成功(对象是在服务器端创建的),但第二次/第三次/第四次没有成功,flow没有第二次给出错误。
当我独立运行PSVM java代码两次时,对象在服务器端成功创建,每次都是如此。
谁能建议在Mule中不让我完成除第一个和解决方案之外的其他请求的原因是什么?
发布于 2014-01-24 05:10:01
虽然这可能不是你的问题,但我建议你:
http:body-to-parameter-map-transformer移到入站端点之后,因为不需要为要过滤的favicon请求运行它,所以https://stackoverflow.com/questions/21304007
复制相似问题