我想部署一个读取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