Apache camel camel exec:找不到终结点错误

Apache camel camel exec:找不到终结点错误,apache-camel,Apache Camel,下面是消费者端点。尝试使用camel exec进程uri执行linux/unix命令 <recipientList> <simple>exec:bash?args=-c CFTUTIL SEND IDF=${property[cftFlowIdentifier]}, PART=${property[cftParterName]}, FNAME=${property[cftFullFilePath]}, FNAME=${property[cftDestination

下面是消费者端点。尝试使用camel exec进程uri执行linux/unix命令

<recipientList>
    <simple>exec:bash?args=-c CFTUTIL SEND IDF=${property[cftFlowIdentifier]}, PART=${property[cftParterName]}, FNAME=${property[cftFullFilePath]}, FNAME=${property[cftDestinationPath]}/${property[cftFileName]}</simple>
</recipientList>
请检查使用camel exec uri调用上述命令是否有任何错误。同一命令在普通java程序中成功执行。

接受逗号分隔的端点列表。如果您需要在URL中使用逗号,请禁用或使用其他分隔符

<recipientList delimiter="false">
   <simple>...</simple>
</recipientList>

...

您还可以切换到更适合您的需要的,因为您只调用一个端点

<toD uri="exec:bash?args=-c CFTUTIL SEND IDF=${property[cftFlowIdentifier]}, PART=${property[cftParterName]}, FNAME=${property[cftFullFilePath]}, FNAME=${property[cftDestinationPath]}/${property[cftFileName]}"/>

<toD uri="exec:bash?args=-c CFTUTIL SEND IDF=${property[cftFlowIdentifier]}, PART=${property[cftParterName]}, FNAME=${property[cftFullFilePath]}, FNAME=${property[cftDestinationPath]}/${property[cftFileName]}"/>