我对jboss fuse非常陌生,我正在使用apache cxf来实现我的restful风格的new服务。我有一个fuse项目,它监听csv文件目录中的数据,并使用我的POJO java类来处理数据。如何将此数据以SOAP格式发送到外部send服务。
我的蓝图文件如下所示
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:camel="http://camel.apache.org/schema/blueprint"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd">
<bean id="bindyDataformat" class="org.apache.camel.dataformat.bindy.csv.BindyCsvDataFormat">
<argument value="org.csvdemo.websocketdemo.Product" />
</bean>
<camelContext trace="false" id="blueprintContext" xmlns="http://camel.apache.org/schema/blueprint">
<route>
<from uri="file://csv/?noop=true&delete=true"/>
<split>
<tokenize token="\n"></tokenize>
<unmarshal ref="bindyDataformat"/>
<log message="${body}"/>
</split>
</route>
</camelContext>
</blueprint>
发布于 2015-10-07 15:18:28
你的帖子似乎缺少了一些东西,比如你的bindyDataFormat被创建了。您需要对cxf进行一些初始设置,因为它是一个非常大的框架。我推荐阅读本教程:http://camel.apache.org/cxf-example.html
https://stackoverflow.com/questions/32995380
复制