【发布时间】:2015-09-19 09:32:08
【问题描述】:
我正在使用蓝图开发一个骆驼restlet项目以部署在Fuse上。这是一个非常简单的带有简单文本正文的 HTTP POST。我将交换模式设置为Inonly。
但是,我预计连接会在实际发布后终止,但我收到了 200 OK,正文中填充了最终处理中的最终正文。
这就是它的工作方式吗?因此我需要手动清理尸体吗?
另外,如果处理是一个长时间运行的进程,会发生什么?我希望在数据发布后直接终止,而不是等到上下文内的完整处理。
我的蓝图是这样的:
<camelContext xmlns="http://camel.apache.org/schema/blueprint">
<route id="timerToLog">
<from uri="restlet:http://localhost:7070/arena?restletMethod=POST&exchangePattern=inOnly"/>
<process ref="marcformatreader"/>
<log message="${body}" loggingLevel="INFO"/>
<process ref="marcformatwriter"/>
<log message="${body}" loggingLevel="INFO"/>
<to pattern="InOnly" uri="file:C:/Camel/output?fileName=output.mrc"/>
</route>
</camelContext>
【问题讨论】:
标签: java apache-camel restlet jbossfuse blueprint