Tag: apache camel

如何将JSONArray转换为使用camel-jackson的对象列表

有json数组的string如下 {"Compemployes":[ { "id":1001, "name":"jhon" }, { "id":1002, "name":"jhon" } ]} 我想把这个jsonarray转换成List<Empolyee> Empolyee List<Empolyee> 。 为此,我添加了Maven依赖项“ camel-jackson ”,并为员工编写pojo类。 但是当我尝试运行我的下面的代码 ObjectMapper mapper = new ObjectMapper(); List<Employe> list = mapper.readValue(jsonString, TypeFactory.collectionType(List.class, Employe.class)); 我得到以下例外。 org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token at [Source: java.io.StringReader@43caa144; line: 1, column: 1] 有人可以告诉我什么是错过或做任何错误

Java消息传递:ActiveMQ,Mule,ServiceMix和Camel之间的区别

我是Messaging的新手,想知道ActiveMQ , Mule , ServiceMix和Camel之间的区别 任何人都知道这些产品是如何不同的? 提前致谢 ! 编辑:也想知道任何好的地方/资源来学习这些东西。

Apache Camel和其他ESB产品

嘿, 如果我们有Apache Camel,为什么要使用Apache ServiceMix和Mule等其他解决scheme? 与这些产品相比,Apache Camel不能做什么? 何时使用Mule / ServiceMix以及何时使用Camel?

如何使用Camel将本地服务的Rest请求路由到远程请求

我试图从一个cxfrest服务路由rest请求到另一个。 我看了一下http://camel.apache.org/cxfrs.html ,这有助于理解过程的一部分。 我在remoteService调用级别有一个classCastException。 我究竟做错了什么 ? <cxf:rsServer id="exposedService" address="/exposed/" serviceClass="com.example.project.ExposedService" /> <!– using different classes since we are not just proxying –> <cxf:rsClient id="remoteService" address="http://remote.com/service" serviceClass="com.example.project.RemoteService" /> <camel:camelContext xmlns="http://camel.apache.org/schema/spring"> <package>com.example.project</package> </camel:camelContext> 服务类别: @Path("/myservice") public class ExposedService { @POST @Consumes("application/xml") public void postResource(javax.xml.transform.Source resource) { // source : not using jaxb just plain xml // only […]

何时使用Spring Integration与Camel?

作为一位经验丰富的Spring用户,我认为Spring Integration最适合需要某些(JMS)消息传递function( 更多详细信息 )的项目。 经过一段时间的工作与Spring集成,它仍然感觉像很多configuration的开销,给定的渠道,你必须configuration一些请求 – 响应(监听不同的JMS队列)通信。 因此,我正在寻找一些背景信息,骆驼是如何不同于spring集成,但似乎有信息是非常有余地,我发现: http://java.dzone.com/articles/spring-integration-and-apache (自2009年12月起,在Spring Integration和Camel之间实现真实世界的集成场景非常中立) http://hillert.blogspot.com/2009/10/apache-camel-alternatives.html (比较骆驼与其他解决scheme,2009年10月) http://raibledesigns.com/rd/entry/taking_apache_camel_for_a(Matt Raible,2008年10月) 问题是:你在使用这个堆栈的时候有什么经验? 在哪种情况下,你会推荐Camel的Spring Integration缺乏支持? 你在哪里看到每个的利弊? 任何意见来自现实世界的项目,高度赞赏。

Apache Camel究竟是什么?

我不明白骆驼究竟做了什么。 如果你能用101个字给骆驼介绍一下: 究竟是什么? 它如何与用Java编写的应用程序进行交互? 这与服务器一起吗? 这是一个独立的程序吗? 请解释骆驼是什么。