apache-camel

How Camel 2.11 batch aggregation works with separate route?

馋奶兔 提交于 2019-12-01 06:27:36
First there is a similar unanswered question Joining routes into single aggregator We have some consumer routes (ftp, file, smb) reading files from remote systems. Simplified for test with direct route, but similar behavior with batch consumers: from("direct:"+routeId).id(routeId) .setProperty(AGGREGATION_PROPERTY, constant(routeId)) .log(String.format("Sending (${body}) to %s", "direct:start1")) .to("direct:aggregate"); After transformation all results from one poll are aggregated by batch in a separate route: from("direct:aggregate") .aggregate(property(AGGREGATION_PROPERTY), new

Bundle is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]

僤鯓⒐⒋嵵緔 提交于 2019-12-01 06:26:08
I have written a simple apache camel project which will eventually be deployed in a FUSE container. For now, I'm simply trying to get a basic unit test working. I'm using the example here as a starting point. I have written unit tests which work, but when I include a blueprint file, I get the following entry in the test output: Bundle TestMainRoute is waiting for namespace handlers [http://camel.apache.org/schema/blueprint] And the test fails with the following stack trace: java.lang.RuntimeException: Gave up waiting for service (objectClass=org.apache.camel.CamelContext) at org.apache.camel

Best way to load dynamically routes in Apache Camel

眉间皱痕 提交于 2019-12-01 06:15:29
we have developped application based on Karaf and Apache Camel. While our application is entirely based on bundles ( OSGI ) we are also loading the Camel context ( and its' Route Contexts ) on startup, whcih would mean that we have defined some static routes. My question is. Is there a way to dynamically LOAD routes while the application is running without the need to reread the Camel Context as this will reset/restart the already existing routes. The same would apply to already created routes, for example if we want to edit a route whcih already exist. The whole idea is that we are planning

Camel ActiveMQ + Spring boot not reading spring activemq configurations

↘锁芯ラ 提交于 2019-12-01 05:35:42
I am trying a very simple route with Spring Boot 1.5.2.RELEASE + Camel (Spring Boot Starter) + ActiveMQ, which is to read from a particular queue and then log it. However, it looks like it is not picking up my spring.activemq configuration for URL as I see in the log it is trying to connect to a different url and it continues to connect it and the my spring boot app never starts. The questions are based on my configuration that I am providing below how can I do the below: Fix the configuration to allow spring's activemq configuration Configure maxReconnectAttempts so that it does not try to

Bundle is waiting for namespace handlers [http://camel.apache.org/schema/blueprint]

雨燕双飞 提交于 2019-12-01 05:34:28
问题 I have written a simple apache camel project which will eventually be deployed in a FUSE container. For now, I'm simply trying to get a basic unit test working. I'm using the example here as a starting point. I have written unit tests which work, but when I include a blueprint file, I get the following entry in the test output: Bundle TestMainRoute is waiting for namespace handlers [http://camel.apache.org/schema/blueprint] And the test fails with the following stack trace: java.lang

Back to Basics : Apache Camel Routes and Direct Component

时光总嘲笑我的痴心妄想 提交于 2019-12-01 05:11:06
问题 I am bit confused about Camel routes and its two endpoints : Direct and Seda. Well let's say i have a route like this : public void configure() { from("direct:services") .process(//Some processing here) .to("http://ThirdPartyServers") } On top of this I have a rest web service which receives several requests, does some processing and then hands over the message to this route to get response from some third party servers. I have instantiated Camel Context through Spring framework like this :

Basic Apache Camel LoadBalancer Failover Example

情到浓时终转凉″ 提交于 2019-12-01 04:24:15
问题 To start I just want to let you know I am new to Camel and very recently I grasped its main concepts. I am trying to create a basic working example using Apache-Camel with ActiveMQ as a broker and using jms-component as a client of a loadbalancer using the failover construct. All this is done using the Java DSL only (if possible). The example consists of 4 main apps, called MyApp-A, MyApp-B, MyApp-C and MyApp-D. In a normal scenario MyApp-A reads a file from my computer and then transforms it

Getting Started with Jboss Fuse ESB

安稳与你 提交于 2019-12-01 04:14:14
I am new to ESB and trying to understand ESB concepts and real-world use cases. I dug into few of the open-source ESB products, seems like Apache Camel is the most famous one [being from Apache family]. I found out that, majority people use Jboss Fuse which developed on Apache Camel, or it's just few more added features on top of Camel. Though, I am trying and searching the internet for almost half day and couldn't possibly find out when we use ESB and a real-world example scenario and basic tutorial to start and understand the Fuse ESB. Could any one please point me the right direction on how

stop route in otherwise

心已入冬 提交于 2019-12-01 04:07:17
hi have a route like this <route id="route1"> <from uri="activemq:queuer1"/> <choice> <when> <simple>${header.urn} regex '^user*'</simple> <to uri="xslt:classpath:/xslt/rdf/user.xsl"/> </when> <when> <simple>${header.urn} regex '^userdata:.*'</simple> <to uri="xslt:classpath:/xslt/rdf/userdata.xsl"/> </when> .... <otherwise> <setHeader headerName="errorMsg "> <constant>no xsl file for this type</constant> </setHeader> <to uri="activemq:error"/> </otherwise> </choice> <process ref="importer"/> </route> Now if the route goes into the otherwise part, the message should not be processed. Can I

Getting Started with Jboss Fuse ESB

不打扰是莪最后的温柔 提交于 2019-12-01 01:57:22
问题 I am new to ESB and trying to understand ESB concepts and real-world use cases. I dug into few of the open-source ESB products, seems like Apache Camel is the most famous one [being from Apache family]. I found out that, majority people use Jboss Fuse which developed on Apache Camel, or it's just few more added features on top of Camel. Though, I am trying and searching the internet for almost half day and couldn't possibly find out when we use ESB and a real-world example scenario and basic