Re: help with issue required. Camel 3.7.3

2021-06-21 Thread Claus Ibsen
Hi See the unit tests from camel-spring-xml such as https://github.com/apache/camel/blob/main/components/camel-spring-xml/src/test/resources/org/apache/camel/spring/processor/SpringMethodCallTest.xml You can do a git grep from the source code git grep "" On Mon, Jun 21, 2021 at 10:27 AM Snaith,

[ANNOUNCE] Apache Camel 3.4.6 Released

2021-06-21 Thread Gregor Zurowski
The Camel PMC is pleased to announce the release of Apache Camel 3.4.6 (LTS). Apache Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data. This patch release contains 8 bug fixes and improvements. This is the l

Tell me about moving messages from one route to another and manual Kafka commit

2021-06-21 Thread Vyacheslav Boyko
Hi! It's the first time I use Kafka + Camel chain. And... what if I have following routes: // 1 route from("kafka://my-topic?allowManualCommit=true&autoCommitEnable=false") .process(someProcessor) .choice() .when(simple("${body} == "MY-CONDITION") .to("seda://yes-queue

Re: Tell me about moving messages from one route to another and manual Kafka commit

2021-06-21 Thread Andrea Cosentino
Hello, The manual commit needs to be done is the same thread of the kafka consumer, so you cannot do this in route 2 or route 3. -- Andrea Cosentino  -- Apache Camel PMC Chair Apache Karaf Committer Apache Servicemix PMC Member Email: ancosen1...@yahoo.com Twitter

Re: Tell me about moving messages from one route to another and manual Kafka commit

2021-06-21 Thread Vyacheslav Boyko
So... Am I able to use "direct" instead of "seda", right? On Mon, 21 Jun 2021 14:49:50 + (UTC) Andrea Cosentino wrote: > Hello, > > The manual commit needs to be done is the same thread of the kafka > consumer, so you cannot do this in route 2 or route 3. > > -- > Andrea Cosentino  >

Re: Tell me about moving messages from one route to another and manual Kafka commit

2021-06-21 Thread Andrea Cosentino
Yes, with direct it should fine. Il giorno lun 21 giu 2021 alle ore 17:08 Vyacheslav Boyko < mail4...@gmail.com> ha scritto: > So... Am I able to use "direct" instead of "seda", right? > > > On Mon, 21 Jun 2021 14:49:50 + (UTC) > Andrea Cosentino wrote: > > > Hello, > > > > The manual commit

How to setup metrics on camel-springboot non-web application

2021-06-21 Thread SRIKANT MVS
Hello, I am running a kafka consumer application using camel-spring-boot-starter. The SpringBoot application implements CommandLineRunner. The below property is configured in my application. camel.springboot.main-run-controller=true I am trying to expose the springboot actuator metrics on the po

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread Mark Nuttall
For an app to expose http endpoints, it has to be a "web app". Why not just add the spring boot web dependency? On Mon, Jun 21, 2021 at 12:51 PM SRIKANT MVS wrote: > Hello, > > I am running a kafka consumer application using camel-spring-boot-starter. > The SpringBoot application implements Com

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread SRIKANT MVS
Yes Mark, Spring-web dependency is also added, still not working. -Regards Srikant On Mon, 21 Jun, 2021, 19:16 Mark Nuttall, wrote: > For an app to expose http endpoints, it has to be a "web app". > > Why not just add the spring boot web dependency? > > On Mon, Jun 21, 2021 at 12:51 PM SRIKANT

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread Nikhil Vibhav
Don't know if you've already tried this but, if you hit http://localhost:8080/actuator it should show you the available endpoints. With spring boot 2.x you have to enable all/each endpoint using the property *management.endpoints.web.exposure.include=** (or if you just want metrics, replace *** wi

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread SRIKANT MVS
Hi Nikhil, Iam using springboot actuator 2.5 version.Below is how I have configured. management.server.port=8080 management.endpoint.info.enabled=true management.endpoint.health.enabled=true management.endpoint.metrics.enabled=true management.endpoints.web.base-path=/app/metrics management.en

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread Nikhil Vibhav
Hey Shrikant You've defined base path as /app/metrics. If you want metrics at the /actuator endpoint then you'll have to remove the management.endpoints.web.base-path=/app/metrics property. Refer https://docs.spring.io/spring-boot/docs/2.1.11.RELEASE/reference/html/production-ready-monitoring.htm

Re: How to setup metrics on camel-springboot non-web application

2021-06-21 Thread SRIKANT MVS
It's resolved. I added the spring-boot-starter-web and I was able to access the url. Nikhil: the below config was used for representation. Thanks for pointing out. -Regards Srikant On Mon, 21 Jun, 2021, 21:45 Nikhil Vibhav, wrote: > Hey Shrikant > > You've defined base path as /app/metrics. If