我想部署一個讀取CSV文件並處理它的駱駝應用程序。我試圖用駱駝bindy來將csv解組到POJO。 駱駝bindy模塊在jboss EAP中不可用,我添加了它。Camel Bindy應用程序JBoss EAP 6.1部署問題
駱駝路線:
<?xml version="1.0" encoding="ASCII"?>
<routes xmlns="http://camel.apache.org/schema/spring">
<route>
<from uri="switchyard://FileService" />
<log message="inside route" />
<doTry>
<split streaming="true">
<tokenize token="/n"></tokenize>
<unmarshal ref="bindyDataformat" >
<bindy classType="com.agcs.bih.prototypes.filetosca.Student" type="Csv"/>
</unmarshal>
<process ref="ProcessCSV"></process>
</split>
<doCatch>
<exception>java.lang.Exception</exception>
<log message="FileToScaRoute - message received: ${exception.message}" />
</doCatch>
</doTry>
</route>
</routes>
蔭部署過程中得到以下例外。
引起:java.lang.IllegalArgumentException:無法創建數據格式'bindy-csv'。確保數據格式是有效的和相關的駱駝成分存在於類路徑
附加的server.log
能否請你幫
嗨湯姆,是我使用FSW 6.0.I已發佈答案。 – Ravi