Questions tagged [apache-camel-3]

52 questions
3
votes
2 answers

Camel JMS Component cache level and Spring's CachingConnectionFactory

As per Apache camel's documentation, we should set Cache level to CACHE_CONSUMER to gain better performance while dealing with non-XA transactions. Probably they did so, as PooledConnectionFactory doesn't cache consumers. In place of…
Raju Parashar
  • 312
  • 4
  • 17
3
votes
3 answers

Camel 3: How to intercept a route from `onException` using `interceptSendToEndpoint`

Problem: During the migration from Camel 2 to 3, my error routing tests broke. The pattern that I follow is to force an exception and assert that the onException() block sends to my metrics route with the appropriate tags. I'm using uri pattern…
geg
  • 4,399
  • 4
  • 34
  • 35
2
votes
0 answers

Whats the exact point for an Apache Camel 3 Endpoint to be singleton or not?

I am working on an Apace Camel 3 component that interfaces the api of some sort of hardware. My implementation works fine in my small tests. But I am stumpleing about the point that Endpoints should be singleton. From my point of view the singleton…
PowerStat
  • 3,757
  • 8
  • 32
  • 57
2
votes
2 answers

Json string split and add addition object in the body using XML DSL in camel

In one of my use case i need to split the inbound json message into multiple message based on the array list that is available in the message. for example, in the below message split to be taken place based "actualData" array list. { …
James Mark
  • 319
  • 4
  • 15
2
votes
1 answer

How to get @UseAdviceWith working in Camel 3

I am about writing some unit tests for production Camel routes in a Spring Boot application. To do so I use adviceWith technique and do not want the CamelContext to start before the advising is done. With Camel 2.24.2 my test class looks like a…
Greenev
  • 871
  • 6
  • 23
2
votes
1 answer

Camel cannot find {{xxx}} in properties from text after update to camel 3.0.0-RC3 using spring boot 2.2.4

I was using spring boot 2.2.4.RELEASE and camel version 2.23.0 In order to make camel have access to properties and use them in uri routes using {{ }} adding camel-spring-boot-starter dependency and defining PropertySourcesPlaceholderConfigurer,…
aboudirawas
  • 192
  • 3
  • 21
1
vote
0 answers

Camel route consuming ActiveMQ "Classic" message with unexpected delay in a random way

We have an integration application based on Apache Camel and IBM MQ message broker. Part of our development work we need to be able to run this application locally on our developer laptops. The issue is that most of us have MacBook machines with…
Julian
  • 3,678
  • 7
  • 40
  • 72
1
vote
1 answer

Error "io.questdb.cairo.CairoException: [2] could not open read-write [file=/_tab_index.d]"

Currently, I am testing QuestDB in a Apache Camel / Spring Boot scenario for our project. I set up a custom Camel component and a configuration bean holding the connection properties. As far as I can see, my custom Camel component properly connects…
WolfiG
  • 1,059
  • 14
  • 31
1
vote
1 answer

Passing a List to an sql-component query

I'm having trouble to pass a list of string I'm getting back from my bean to my sql-component query to make a call to the database. So in this upper line of code I'm taking data from the body that is…
Pouissante
  • 56
  • 1
  • 5
  • 25
1
vote
1 answer

Unit testing camel routes containing serviceCall()

I have a camel route that reaches out to a URL and does some processing with the results: from("direct:doURL") .routeId("urlRouteId") .to("http://host:port/path") .process(e -> { //Do Stuff }); I can run unit test on that…
David Harris
  • 705
  • 1
  • 7
  • 16
1
vote
1 answer

Issue with Arrays.stream(body.split(" ")).forEach

Trying to download files from apache.camel. import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.nio.file.Files; import java.nio.file.Paths; import java.nio.file.StandardCopyOption; import…
Ricky Vene
  • 105
  • 1
  • 11
1
vote
1 answer

Camel set body to object with header expression

Is it possible to set a response body to an object and pass in a camel header property. I can achieve this in a processor but I'd rather do it in line of the route. .setBody(constant( new Foo() .withOne("HelloWorld") …
FullStack
  • 437
  • 5
  • 15
1
vote
0 answers

Camel 3 - Predicate Calling Method on Bean Stored as ExchangeProperty

With Camel 2 it was possible to call a method on a bean stored as exchange property like so when building a predicate: exchangeProperty("aPropertyHoldingABean").method("aMethodReturningAString").in("a", "b") In Camel 3 the method method has been…
Ralf
  • 6,735
  • 3
  • 16
  • 32
1
vote
1 answer

How to retrieve query parameter value while using Apache Camel?

I have a REST endpoint http://localhost:8080/replaymessages/{messageids} wherein messageids will have comma (,) separated values - say 123,456,789 and so on. How to retrieve these values while using Apache Camel?
1
vote
1 answer

Apache Camel Java 8 Support

In this blog it has been written that Apache Camel will drop the Java 8 support in the mid 3.x versions: Java 8 will still be supported for the first number of 3.x releases but is expected to be dropped later in 2020 How can I know precisely from…
user16714232
1
2 3 4