如何退出Apache Camel / Jboss中的循环

时间:2016-07-08 07:14:07

标签: jboss apache-camel context.xml

当Jboss / Apache驼峰中的正文包含'SUCCEDDED'时,我需要退出循环。我尝试过使用Stop()但是它不起作用,因为它会停止每个连接(例如:DBConnection)。

以下是示例代码:                                                    60                                      10000                                                                                                 $ {机构}         包含'SUCCEEDED'                                                                                                                                              

                    <CXF bean call />
                    <log loggingLevel="INFO"
                        message="response 
    : ${body}">
                        <description>Logs the 2nd SOAP Response.</description>
                    </log>
                    <setBody>
                        <xpath>{{status.xpath}}</xpath>
                    </setBody>
                    <convertBodyTo type="java.lang.String" />
                </otherwise>
            </choice>
        </loop>
        <to uri="direct:loopend">
        </to>
    </route>

0 个答案:

没有答案