Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache camel 为什么camel路由中的bean参数是exchange的主体值?_Apache Camel - Fatal编程技术网

Apache camel 为什么camel路由中的bean参数是exchange的主体值?

Apache camel 为什么camel路由中的bean参数是exchange的主体值?,apache-camel,Apache Camel,我是骆驼队的首发队员。我有个问题。我有一条路线 <route> <from uri="file:/test/inBox"/> <bean method="processingAuditInsert(*, 'RD', 'AA')" ref="fileAuditHandler"/> <bean method="processingAuditUpdate(*, 'IU')" ref="fileAuditHandler"/>

我是骆驼队的首发队员。我有个问题。我有一条路线

<route>
    <from uri="file:/test/inBox"/>
    <bean method="processingAuditInsert(*, 'RD', 'AA')" ref="fileAuditHandler"/>
    <bean method="processingAuditUpdate(*, 'IU')" ref="fileAuditHandler"/>
    <toD uri="file:/test/outBox"/>
    <bean method="processingAuditUpdate(*, 'CO')" ref="fileAuditHandler"/>
</route>

如果您能在db表中提供FileAuditHandler的完整代码FileAuditHandler only acts insert和update,这将非常有用。我想知道为什么参数是body的值,而不是CO。
@Handler
public void processingAuditUpdate(Exchange ex, String status) {
    if (status.equals("IU")) {
        // Update Status 'IU'
    } else (status.equals("CO")) {
        // Update Status 'CO'
    } else {
        log.error("Update Status value is invalid!!!! ::::: {}", status);
    }
}