apache-camel

Wiring package exceptions in Fuse/Karaf

与世无争的帅哥 提交于 2019-12-11 19:43:22
问题 In many projects, I have came across this exception. What could be the reason for this exception ? According to my knowledge, it can be because of inconsistent version usage. What could be the other possible scenarios ? Is this because of the Camel version we are using in the project ?Please help. org.osgi.framework.BundleException: Unresolved constraint in bundle com.test.div.soa.module-notify[324]: Unable to resolve 324.0: missing requirement [324.0] osgi.wiring.package; (&(osgi.wiring

Using Apache Camel with Amazon AWS

怎甘沉沦 提交于 2019-12-11 19:41:20
问题 Just wondering , I want to use Apache Camel with AWS ( SQS and SNS ). I have never used Camel before. I want to have distributed components that get messages from SQS and post responses to SNS. My understanding is that Apache Camel is pretty good at implementing such EIP architectures :-) So, does Camel automatically create all the SQS Queues, SNS Topics for me automatically or do I have to script those object creations using AWS Cloud Formation ? Cheers ! 回答1: Apache Camel is ideal for your

How to use Camel Message Filter Bean in Spring XML

倾然丶 夕夏残阳落幕 提交于 2019-12-11 19:35:34
问题 The Camel documentation for Message Filter shows several Java DSL examples using a "filter bean" like so: from("direct:start") .filter().method(MyBean.class, "isGoldCustomer").to("mock:result").end() .to("mock:end"); public static class MyBean { public boolean isGoldCustomer(@Header("level") String level) { return level.equals("gold"); } } But that page doesn't show how to invoke that bean in Spring XML: <route id="my-route"> <from uri="direct:a" /> <filter> <method>??? how to call MyBean

ServiceMix / JPA Integration - LocalContainerEntityManagerFactoryBean to type EntityManagerFactory

与世无争的帅哥 提交于 2019-12-11 18:57:43
问题 I'm fairly new to ServiceMix / JPA / Camel / Spring. I'm attempting to use the camel-jpa component as part of my camel route. I'm using the latest release of ServiceMix, which is 4.5.1. This uses camel 2.10.4 and spring 3.0.7. After updating the OSGi manifest and deploying some additional modules to servicemix, I am stuck on the following stack trace: org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting property: PropertyDescriptor <name: entityManagerFactory,

Creating durable subscriber using Polling Consumer in camel

左心房为你撑大大i 提交于 2019-12-11 18:20:57
问题 I am trying to create a durable subscriber using polling consumer. The URI is correct as same uri is working when used in camel route and durable subscriber is correctly created. For some reason PollingConsumer is not able to create durable subscriber and instead creates normal subscriber. Is it not possible to create durable subscribers using polling consumer? public class OutQWaitingProcesser implements Processor { @Override public void process(Exchange exchange) throws Exception { Endpoint

In Camel how can i split a route using xpath on a header

女生的网名这么多〃 提交于 2019-12-11 18:19:24
问题 As the title suggests, i have a route with a header that contains some xml similar to the following snippet as a string; <files> <image_file1>image.png</image_file1> <image_file2>image.png</image_file2> </files> What I'm trying do do is split via xpath using something like the following. As the following suggests when the xml is part of the body, all runs fine:- from(myIncomingQueue) .convertBodyTo(String.class, "utf-8") .split(xpath("//*[local-name()='files']/*")) .setHeader(

Camel-rabbitmq component unable to communicate via SSL

不问归期 提交于 2019-12-11 17:48:37
问题 I am using camel-rabbitmq component to communicate rabbitMQ via SSL. As per rabbitMQ component document to enable SSL only sslProtocal parameter is enough. By default JVM SSLcontext will be loaded and validate server certificate based on /lib/security/cacerts file (or) JVM arguments. Detailed info present in this link :- https://docs.oracle.com/javase/6/docs/technotes/guides/security/jsse/JSSERefGuide.html#CustomizingStores I supplied key store files in JVM arguments , started below blueprint

Type conversion issue with Apache Camel and Spring

心已入冬 提交于 2019-12-11 17:25:24
问题 I'm trying to externalize my Camel Spring (Camel 2.20.2; Spring 4.3.14) configuration into an application.properties property file. This property file has the following content: net.sender1.port = 47000 net.sender1.address = 127.255.255.255 The application.properties file resides within src/main/resources and is copied to the target jar by the maven-shade-plugin. My Camel context looks like this: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="..." xmlns:xsi="..." xmlns:camel="..." xsi

Apache Camel CXF - Error Illegal character ((CTRL-CHAR, code 31)

[亡魂溺海] 提交于 2019-12-11 17:17:12
问题 I have written a camel route that is basically a proxy for an https web service. Below is my route Please note that the https service responds with gzip encoding !! <camel:sslContextParameters id="sslContext"> <camel:trustManagers> <camel:keyStore resource="certificates/cert.jks" type="jks" password="test"/> </camel:trustManagers> </camel:sslContextParameters> <cxf:cxfEndpoint id="source" wsdlURL="wsdl/SampleService.wsdl" serviceClass="com.sample" address="http://localhost:9000/SampleService"

apache camel - seda endpoint multicast

断了今生、忘了曾经 提交于 2019-12-11 17:16:36
问题 from("seda:start) .multicast(new GroupedBodyAggregationStrategy()) .parallelProcessing() .to("seda:process1", "seda:process2") .end() .to("seda:join"); The plan is for process1 and process2 to run in parallel and for its output to be available on join endpoint. Above is working fine if on "direct", but on "seda" the behavior is that the "join" is getting invoked immediately even though process1 and process2 is still in progress. I have tried adding the following options to process1 and