Questions tagged [apache-camel-cdi]

The Apache Camel CDI component provides auto-configuration for Apache Camel using CDI as dependency injection framework based on convention-over-configuration.

The Apache Camel CDI component provides auto-configuration for Apache Camel using CDI as dependency injection framework based on convention-over-configuration. It auto-detects Camel routes available in the application and provides beans for common Camel primitives like Endpoint, ProducerTemplate or TypeConverter. It implements standard Camel bean integration so that Camel annotations like @Consume, @Produce and @PropertyInject can be used seamlessly in CDI beans. Besides, it bridges Camel events (e.g. RouteAddedEvent, CamelContextStartedEvent, ExchangeCompletedEvent, ...) as CDI events and provides a CDI events endpoint that can be used to consume / produce CDI events from / to Camel routes.

Site: http://camel.apache.org/cdi.html

24 questions
0
votes
1 answer

Camel - How to configure redeliver only for HTTP Code 500 series

I have configured the re delivery related properties as follows. In fact, I wanted to retry only for HTTP Code 500x series. But I see that onException() takes only exception type. How to achieve this? My application is spring boot & camel…
mac
  • 543
  • 1
  • 6
  • 17
0
votes
1 answer

Iterating over user user defined collections in Apache came route

I got a requirement that i have on main route and child route. In the main route will get the list of objects, there i need to make a call to child route for each individual elements in the list. Then in Child route will make a call to web-service…
Raghavan
  • 401
  • 6
  • 21
0
votes
0 answers

log4 file not loaded in wildfly camel subsystem

This is my environment Wildfly 12.0.0.Final WildFly-Camel 6.1.0 (WildFly-Camel 6.1.0 provides Camel-2.21.1 integration with WildFly-12.0.0) Oracle jdk 1.8.0_112 64 bits I have created a maven project Group Id :…
usuario
  • 2,132
  • 1
  • 10
  • 26
0
votes
1 answer

Adding a varibale to the RouteDefination "from " in Apache camel

I am looking to amend the RouteDefination from in Apache Camel I hav eproperties file as below test1=test queue1=queue code as below from( "activemq:queue:{{test1}}.{{queue1}}") .transform() .simple(" ${body} {{test1}}.{{queue1}}.hello…
Mike
  • 615
  • 1
  • 6
  • 10
0
votes
1 answer

Does Apache camel cdi work with Tomcat?

Does Apache camel-cdi work with Tomcat/TomEE? I have tried using TomEE but camel context was not started. If not then which container we need to use?
Raj
  • 115
  • 8
0
votes
0 answers

Reading a file using Apache Camel from an FTP location

I have a requirement to read a file continuously from an FTP location and write to some topic(for eg:Kafka) using Apache Camel. I am able to read the file in the startup and write to the topic. Is there a way in Camel to read the file continuously…
Raj
  • 115
  • 8
0
votes
3 answers

Header Values are coming as null in Apache camel Exchange

Below are my web-service request, Route and Request-Validator, Web-service request:
Raghavan
  • 401
  • 6
  • 21
0
votes
2 answers

camel-file component filter with cdi

I'm using camel without the Spring framework (using CDI instead). How can I set a filter for the camel-file component? My filter class looks like this: @Named @Stateless public class MyFilter implements GenericFileFilter { …
sinclair
  • 2,812
  • 4
  • 24
  • 53
0
votes
2 answers

How to use same CamelContext in multiple jar on the same war

I'm using the camel 2.16.2 and I need to use the one CamelContext across multiple jars as I need to have all the Camel Routers in to one CamelContext. So my war will have all those jars as maven artifacts. Please let me know how do I handle above…
kds
  • 28,155
  • 9
  • 38
  • 55
1
2