apache-camel

Apache Camel Resequencer with Apache Camel SEDA queue?

六月ゝ 毕业季﹏ 提交于 2019-12-11 08:23:21
问题 I have a SEDA queue that uses the parameter "concurrentConsumers=5". Now, I am trying to integrate it with the Apache Camel Resequencer in order to be able to reorder the messages before processing them, however, when I do this, only one message is processed at a time. I would like to know if it is possible to run several resequencer messages in parallel. This is my XML code: <route> <from uri="seda:barSetup?concurrentConsumers=5" /> <resequence> <batch-config batchSize="300" batchTimeout=

recover headers value after split apache camel

主宰稳场 提交于 2019-12-11 07:58:01
问题 I have a xml where I'm using the split tag to process in Spring DSL. What I'm doing is basically seaching for a value in the xml, when I find this value I need to get the value of another tag, child of the same element and save to a header. This operations seems simple, but I can't recover my headers outside split and I need to. I tried with headers and properties and the result was the same. Please help me to figure out what I'm doing wrong. Code sample: <route> ... <split> <xpath>/

How to start Camel route optionally from other route?

久未见 提交于 2019-12-11 07:45:40
问题 What is the best way to start a camel route optionally from another route? My use case is i'm sending out automated reports based on a table in a database. If the table is stale, the route to fetch fresh data should be started. I have routes for generating and sending out the reports and i have a route for fetching a file from a remote server, saving it locally, reading it into a database and updating the database log (this tells the reporting routes if the data is fresh). But how to tie them

setting ReplyToQ attribute of MQMD of IBM MQ request message with Camel

假装没事ソ 提交于 2019-12-11 07:36:27
问题 I use Camel with Fuse, and I have trouble with setting JMSReplyTo. Here is an excerpt from my route: <setHeader headerName="JMSReplyTo" id="_setHeader2"> <constant>QTEST</constant> </setHeader> <setHeader headerName="CamelJmsDestinationName" id="_setHeader1"> <constant>queue://QM_TEST/SYSTEM.DEFAULT.LOCAL.QUEUE?targetClient=1</constant> </setHeader> <to id="_to1" uri="websphere:queue:SYSTEM.DEFAULT.LOCAL.QUEUE?replyTo=QTEST"/> I took as an example the code given here: Implementing native

Camel-Kafka security protocol SASL_PLAINTEXT not supported

两盒软妹~` 提交于 2019-12-11 07:29:15
问题 I need to route ActiveMQ messages to Kafka(Cloudera) using Camel using authentication protocol Kerberos. ActiveMQ v5.15.4 Camel:2.21.1 Kafka Clients: 1.1.0 Server Version: Apache/2.4.6(CentOS) Kafka Security documentation states that it only supports SASL_PLAINTEXT and SASL_SSL for Kerberos On the other hand when I try to use SASL_PLAINTEXT for security protocol in Camel I am getting an error during the ActiveMQ starting. As a result ActiveMQ will not start. I took the latest Camel code from:

Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.7

不想你离开。 提交于 2019-12-11 06:53:01
问题 I was developing a project on JBoss-Fuse from Create a Router Project. While running mvn -install , I am getting following error: [ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.7:bundle (default-bundle) on project camel-basic: Error calculating classpath for project MavenProject: org.fusesource.example:camel-basic:1.0-SNAPSHOT @ /home/pr.singh/Gemini/Java-General/Workspace/fuse/camel-basic/pom.xml: The JAR/ZIP file (/home/pr.singh/.m2/repository/org/apache/camel/camel

Spring Context shutting down camel routes when activemq connection is lost

纵然是瞬间 提交于 2019-12-11 06:49:44
问题 I have an application using spring-boot, Apache Camel and active MQ. The camel routes are activeMQ queue polling routes. This is the camel-context.xml <?xml version="1.0" encoding="UTF-8"?> <!-- Configures the Camel Context--> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:amq="http://activemq.apache.org/schema/core" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema

Streaming using camel JMS

安稳与你 提交于 2019-12-11 06:48:33
问题 I have a application which places message in JMS Queue.The message size can be upto 150 mb. JMS message contains byte array data with additional metadata as xml,once the message is placed in queue the camel route application picks the message and calls the external java api with the message.i would like to stream the message from the JMS Queue using camel jms component. Can you please tell me if i can acheive it using camel. Currently i am facing heap error issue. Sample JMS message is as

Apache Camel - JMS inonly behaviour when broker down

一笑奈何 提交于 2019-12-11 05:48:45
问题 I am producing to an ActiveMQ instance with a Camel ActiveMQ component: <camel:log message="YMA_IN" /> <camel:inOnly uri="activemqBroker:queue:queue.test" id="activemqBrokerTestQueue"/> <camel:log message="YMA_OUT" /> The only jms configuration on the endpoint is TTL and a pooled connection factory. <amq:connectionFactory id="jmsConnectionFactory" brokerURL="${config.jms.broker.url}" /> <bean id="pooledConnectionFactory" class="org.apache.activemq.pool.PooledConnectionFactory" init-method=

restrict event notifier for multicast eip

北城以北 提交于 2019-12-11 05:38:25
问题 Is it possible to know whether any Eip has been used in my context, a unique id or something like that..! When exchange is copied , for each copies Event is notified, is there any possibility to restrict it to notify once.. Ref: Used and tested with the Apache Camel "MultiCast" eip 回答1: Solution: 1: Eip - Multicast will be available in the CamelExchange properties... as CamelMulticastIndex. 2: Eip - WireTap, will be available in Camel MessageHistory(InOnly) pattern... Hope it helps in solving