Re: Camel Spring RabbitMQ with setMaximumRetryAttempts: Wrong count?

2024-05-25 Thread Claus Ibsen
e at least the description should mention this more clearly?! > > With kind regards > Bert. -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Message Header moved to Exchange property in 4.5 or 4.6?!

2024-05-24 Thread Claus Ibsen
Hi Its already in the guide at https://camel.apache.org/manual/camel-4x-upgrade-guide-4_5.html#_intercept_eip On Fri, May 24, 2024 at 2:25 PM Claus Ibsen wrote: > Hi > > Its > https://issues.apache.org/jira/browse/CAMEL-20381 > > On Fri, May 24, 2024 at 2:23 PM Claus Ibs

Re: Message Header moved to Exchange property in 4.5 or 4.6?!

2024-05-24 Thread Claus Ibsen
Hi Its https://issues.apache.org/jira/browse/CAMEL-20381 On Fri, May 24, 2024 at 2:23 PM Claus Ibsen wrote: > Hi > > You are welcome to add this to the guide, (find out which version it was > changed, so you can add it to the correct guide) > > > On Fri, May 24, 2024 at 2

Re: Message Header moved to Exchange property in 4.5 or 4.6?!

2024-05-24 Thread Claus Ibsen
anges that we didn't recognize. > Is there any information about those changes? > > With kind regards > Bert. > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Graceful shutdown of the route

2024-05-23 Thread Claus Ibsen
e email, and then delete the email and any copies > of it. Although WOOD & Co. routinely screens e-mails for viruses, > addressees should scan this e-mail and any attachments for viruses. WOOD & > Co. makes no representation or warranty as to the absence of viruses in

Re: Stopping a route while in retry (how to interrupt the retry?) ... worked great before migration to "camel spring rabbitmq"

2024-05-07 Thread Claus Ibsen
Hi We can maybe also add on option to error handler to make this general https://issues.apache.org/jira/browse/CAMEL-20744 On Tue, May 7, 2024 at 5:03 PM Claus Ibsen wrote: > Hi > > You can try adding retryWhile to your onException and check if the route > status if

Re: Stopping a route while in retry (how to interrupt the retry?) ... worked great before migration to "camel spring rabbitmq"

2024-05-07 Thread Claus Ibsen
message to finish but then forces the route to stop ... but the retry > thread is still running and tries to redeliver the message (we can see > the delivery failures while the consumer and route is stopped) > > Thanks for reading all this. I hope I made my point clear?! > > With kind regards > Bert > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JMS component / Dynamic destination on consumer

2024-04-17 Thread Claus Ibsen
Any idea ? > > Thanks for your help. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel 3.22 issues with route ID

2024-04-16 Thread Claus Ibsen
Hi You can also use nodePrefixId to help make unique ids easier, which you can set on routes On Tue, Apr 16, 2024 at 9:49 AM Claus Ibsen wrote: > Hi > > This is correct as-is. You should not have duplicate ids, its your problem > to fix that. > > On Tue, Apr 16, 2024

Re: Camel 3.22 issues with route ID

2024-04-16 Thread Claus Ibsen
all, > so no problem there. > > > > So, it looks like the order of route configuration was deterministic in > Camel 3.18 (here, it seems the route configuration order depended on the > name of the class or the package the class is in). > > In Camel 3.22 it seems this is not deterministic anymore, leading to > above-described problems. > > > > Please let us know if this behavior is known and if I should create a > ticket for it. > > > > Thanks > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [VOTE] Release Apache Camel Kamelets 4.5.0

2024-04-02 Thread Claus Ibsen
amelets 4.5.0 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Here's my +1. > > Thanks, > Andrea Cosentino > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [ANNOUNCE] Apache Camel 4.5.0 Released

2024-03-28 Thread Claus Ibsen
.component.micrometer.routepolicy.MicrometerRoutePolicyFactory.createOrGetContextMetric(MicrometerRoutePolicyFactory.java:115) > > 24613 at > org.apache.camel.component.micrometer.routepolicy.MicrometerRoutePolicy.onInit(MicrometerRoutePolicy.java:299) > > 24614 at > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:352) > 24615 at > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:79) > 24616 ... 18 more -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: in Camel+Spring Boot, how to dynamically update a property

2024-03-28 Thread Claus Ibsen
han mine can tell. And, if not, what is the > correct way to update a route triggered from a timer so that properties can > be altered from how they were initially pulled in from > application.properties. > > Any suggestions gratefully accepted. > > Thanks, > Mitch > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Jbang 4.4.1 not available?

2024-03-24 Thread Claus Ibsen
ava and it still seems to refer to 4.4.0, > is > > > >> this > > > >> something that needs to be changed on the source code side? > > > >> > > > >> I'm not actually that familiar with how the versioning with the > Camel > > > >> Jbang > > > >> works. I assumed that the release of Camel 4.4.1 means that the > Camel > > > >> Jbang > > > >> is also updated to the same version. But now I noticed that there's > no > > > >> 4.4.1 release for the docker image either, so I assume they have a > > > >> different release cadence. > > > >> > > > >> Specifying the exact version when running a command works, for > > example: > > > >> > > > >> jbang --fresh "-Dcamel.jbang.version=4.4.1" camel@apache/camel > > > --version > > > >> > > > >> Best regards, > > > >> Mikael > > > >> > > > > > > > > > > > > -- > > > > Tadayoshi Sato > > > > > > > > > > > > > -- > > > Tadayoshi Sato > > > > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Svar: Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-23 Thread Claus Ibsen
ot; : 1000, "message" : "ERROR message = Unspecific Error(Error occurred)" }% On Sat, Mar 23, 2024 at 9:15 AM Claus Ibsen wrote: > Hi > > https://issues.apache.org/jira/browse/CAMEL-20607 > > On Thu, Mar 21, 2024 at 1:03 PM Mikael Andersson Wigander >

Re: Svar: Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-23 Thread Claus Ibsen
Hi https://issues.apache.org/jira/browse/CAMEL-20607 On Thu, Mar 21, 2024 at 1:03 PM Mikael Andersson Wigander wrote: > > Hi > > As simple as I get do it… > > https://github.com/hakuseki/demo-Camel-UoW > > > > /M > > > On Thursday, March 21st, 2024 a

Re: [VOTE] Release Apache Camel Kamelets 4.4.1

2024-03-22 Thread Claus Ibsen
ease cast your vote. > > [ ] +1 Release camel-kamelets 4.4.1 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Here's my +1. > > Thanks, > Andrea Cosentino > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Svar: Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-21 Thread Claus Ibsen
Hi Yeah if you keep it plain camel and not fancy spring boot stuff On Thu, Mar 21, 2024 at 11:06 AM Mikael Andersson Wigander wrote: > Spring boot OK? > > /M > > Den 21 mars 2024 kl 10:51, Claus Ibsen <[claus.ib...@gmail.com](mailto:Den > 21 mars 2024 kl 10:51, Claus Ib

Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-21 Thread Claus Ibsen
Hi Can you make something that is pure camel (not quarkus) that will help On Thu, Mar 21, 2024 at 7:56 AM Mikael Andersson Wigander wrote: > Here's a repo to use > > https://github.com/hakuseki/code-with-quarkus > > > > > /M > > > On Wednesday, March

Re: Issue with unit or work and toV endpoint when Excetion thrown

2024-03-20 Thread Claus Ibsen
OR message = %s(%s)", > reason, errorString)); > > } > in.setBody(message); > } > } > } > > > > -- > > Capgemini is a trading name used by the Capgemini Group of companies which > includes Capgemini Sverige AB, a company registered in Sweden (number > 556092-3053) whose registered office is at FLEMINGGATAN 18 BOX 12054 S-102 > 22 Stockholm, Sweden. > This message contains information that may be privileged or confidential > and is the property of the Capgemini Group. It is intended only for the > person to whom it is addressed. If you are not the intended recipient, you > are not authorized to read, print, retain, copy, disseminate, distribute, > or use this message or any part thereof. If you receive this message in > error, please notify the sender immediately and delete all copies of this > message. > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to get headers within Variables returning?

2024-03-14 Thread Claus Ibsen
eiving is set? > > Since using the valueReceive the headers created within the call is moved > to a headers map within the variableRepository. > > /M -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel AWS-S3 prefixes do not accept wildcards

2024-03-13 Thread Claus Ibsen
ut it might be easier to just add: > "Note: due to AWS S3 limitations, the prefix parameter does not work with > wildcards." > > It would be even more helpful, of course, if the component were modified in > some way to allow for wildcards. > -- Claus Ibsen --

Re: Error executing reactive work due to Java heap space. This exception is ignored.

2024-03-13 Thread Claus Ibsen
a.lang.OutOfMemoryError: Java heap space > > Regards Christian > > Am 13.03.24, 10:16 schrieb "Claus Ibsen" : > > What Camel version, and can you tell the exact exception class that was > throw > > On Tue, Mar 12, 2024 at 2:17 PM MÜLLER Christian (ICS

Re: Error executing reactive work due to Java heap space. This exception is ignored.

2024-03-13 Thread Claus Ibsen
t us. > Under this link you will find information about the processing of your > personal data and about your rights as a data subject > https://www.spar.at/service/datenschutzhinweise > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JMS & transaction : redelivery conditions ignored

2024-03-11 Thread Claus Ibsen
ched between "disableRedelivery" and "maximumRedeliveries" > : no difference. > > I've probably misunderstood how it works :( ! > > Any experts for help ? > > Thanks in advance. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel-Kafka parameters sanitization

2024-03-11 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/jira/browse/CAMEL-20549 On Mon, Mar 11, 2024 at 1:20 PM Claus Ibsen wrote: > Hi > > > Thanks for reporting. You are welcome to create a JIRA so we can fix this > little bug. > We need to make Camel pass in that value as upper ca

Re: Camel-Kafka parameters sanitization

2024-03-11 Thread Claus Ibsen
e is > not specified, but trust store password is specified."); > > } else if (path != null) { > > return new FileBasedStore(type, path, password, null, false); > > } else > > return null; > > } > > >

Re: JMS InOut consumer question

2024-03-08 Thread Claus Ibsen
) > .setHeader("JMSReplyTo", constant("Q.replyqueuename")) > .to("jms:queue:" + "Q.inputqueuename" + "?replyTo="+ > "Q.replyqueuename" > +"=InOut"); > > Thanks for the reply in advance. > Best regards, > > Bálint > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Netty TCP Producer- unable to get byte array from response

2024-03-07 Thread Claus Ibsen
ackTrace(); > } > } > }); > sendThread.start(); > main.run(args); > > System.out.println("Done"); > } > > } > > Here is my encoder / decoder: > > @BindToRegistry > public

Re: Any way to have "Named/Keyed Endpoints" in YAML / Karavan?

2024-03-06 Thread Claus Ibsen
s that I could apply all the properties defined in the > > > application.properties to the endpoint instead of having to add the > > > properties one by one. > > > > > > I went through the documentation and found something that is almost > > there:

Re: Reconfigure incoming file endpoint to follow current date

2024-03-01 Thread Claus Ibsen
scan this e-mail and any attachments for viruses. WOOD & > Co. makes no representation or warranty as to the absence of viruses in > this e-mail or any attachments. Please note that to ensure regulatory > compliance and for the protection of our clients and business, we may > monitor and read e-mails sent to and from our server(s). > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: What happened to HTTP component OAuth support?

2024-03-01 Thread Claus Ibsen
der wrote: > Hi > > As of release 4.2 there’s support for OAuth in the http component but > nowhere to be found on how to use it. > > CAMEL-18637 > > all I can find is a OAuth2ClientConfigurer class. > > /M -- Claus Ibsen - @davsclaus Camel in

Re: using Camel with CloudKarafka

2024-02-29 Thread Claus Ibsen
onsumer-12da9c71-2e7d-4726-935f-cf60c349fee3-1, > groupId=12da9c71-2e7d-4726-935f-cf60c349fee3] Cancelled in-flight > API_VERSIONS request with correlation id 3 due to node -1 being > disconnected (elapsed time since creation: 313ms, elapsed time since send: > 313ms, request timeout:

Re: REST DSL: Request param validation possibilities & existing option "allowableValues" not working

2024-02-29 Thread Claus Ibsen
on etc.) but we are using a HTTP GET endpoint and the RFC 7231 > standards do not allow GET requests with json bodies. > So it seems as Camel doesn't provide full validation possibilities we have > to manually check the incoming HTTP request parameter for validity? > > I am grateful for any tips! > > Kind regards > Jacob > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [VOTE] Release Apache Camel Kamelets 4.4.0

2024-02-19 Thread Claus Ibsen
gt; Please cast your vote. > > [ ] +1 Release camel-kamelets 4.4.0 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Here's my +1. > > Thanks, > Andrea Cosentino > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Issue with SpringBootTest and camel-rest

2024-02-18 Thread Claus Ibsen
d > exception. > > As a workaround, it's possible to add @DirtiesContext. However, this hurts > test performance and should be avoided if possible. > > Am i missing something or is this a current limitation of camel-rest? > > thanks, >Alphonse -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel 4 and Weld CDI

2024-02-14 Thread Claus Ibsen
ng CDI ( more specifically > Weld but any CDI implementation would do ) > > > On Wed, 14 Feb 2024, 12:16 pm Claus Ibsen, wrote: > > > Hi > > > > camel-cdi is no longer supported and there is no plan. > > You can with CDI have some way of startup listeners

Re: Camel 4 and Weld CDI

2024-02-14 Thread Claus Ibsen
ly not allow me to switch to camel-quarkus, since > quarkus is not used in the application. > > Thank you for your assistance in this matter > > Regards > > Jad anouti > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Order of logName evaluation for log EIP

2024-02-13 Thread Claus Ibsen
986658f863171/core/camel-core-reifier/src/main/java/org/apache/camel/reifier/LogReifier.java#L70) > it would use getLineNumberLoggerName() before any kind of routeId first. > > What is the wanted order code or doc? Seems to be a bug, anyway :) > > Regards, > > Benjamin > --

Re: REST dsl in Kamelet

2024-02-11 Thread Claus Ibsen
> > > > > > > > > -- > Regards, > Rohan Emmanuel > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: XML Io Dsl: Can a bean reference another bean?

2024-02-07 Thread Claus Ibsen
use I want to dynamically add the Camel routes after the > Spring Boot application was started. > > Regards Franz > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How does Apache Camel (un)marshal with 'gzipDeflater' work?

2024-02-06 Thread Claus Ibsen
che.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:870) > at > org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:610) > at > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:213) > ... 11 more > > The error message says I need another dependen

Re: FTP not streaming to JMS

2024-02-06 Thread Claus Ibsen
Hi btw there are some streaming and artemis options in camel-jms if you have not seen that. On Mon, Feb 5, 2024 at 12:19 PM Claus Ibsen wrote: > Hi > > If you use the Red Hat Camel / Messaging product then you can contact that > vendor to get support. > > > On Mon, Fe

Re: FTP not streaming to JMS

2024-02-05 Thread Claus Ibsen
000 == 0) { > exchange.getIn().getBody(String.class); > log.info("streamed Line {}: {}", lineNumber + 1, > exchange.getIn().getBody(String.class)); > } > }) > .end() > .log("Finished"); > > > > > } > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel 3.21.x to 3.22.x / Migration guide

2024-01-26 Thread Claus Ibsen
breaking change, neither in the code nor > at runtime ? > > Thanks. > > Regards. > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: basic question about where aggregation is appropriate

2024-01-18 Thread Claus Ibsen
h, or is this how it's typically > done? > > Thanks, > Mitch > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: [VOTE] Release Apache Camel Kamelets 4.0.3

2024-01-17 Thread Claus Ibsen
/apache/camel-kamelets/releases/tag/v4.0.3 > > Please cast your vote. > > [ ] +1 Release camel-kamelets 4.0.3 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Here's my +1. > > Thanks, > Andrea Cosentino > -- Cl

Re: spring xml DSL to YAML dsl

2024-01-16 Thread Claus Ibsen
/deleting/ to > Destination 1. ( Process:dd345) > > >ref="organisation_endpoint.delete.ddl2java"/> > > > > > > > -- > Regards, > Rohan Emmanuel > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel JMS headers not updated by producer

2024-01-16 Thread Claus Ibsen
ry=#myJMS" > > > / > > > > > > I expected to have the header "JMSDestination" set on the Camel > > > message with the destination, but instead of that I still have the > > > input JMS message's queue name. > > > > > > The same w

Re: Adding http(s) compatibility to a component (for discoverable service compatibility)

2024-01-03 Thread Claus Ibsen
es > that are gaining popularity, please let me know. Also, if you know of some > tickets that will help me learn Camel better, feel free to point me to > them. I can usually find some time to contribute more. > > Thanks, > Steve > > On Sat, Dec 30, 20

Re: Testing JMX with camel-test-junit5

2024-01-02 Thread Claus Ibsen
code. Also take a look at the existing tests in camel-management etc. On Tue, Jan 2, 2024 at 6:53 PM Steve973 wrote: > Hi, Claus. Yes, I have included camel-management as a test-scoped > dependency. > > On Tue, Jan 2, 2024 at 12:24 AM Claus Ibsen wrote: > > > Hi > &g

Re: Testing JMX with camel-test-junit5

2024-01-01 Thread Claus Ibsen
ng.xsd;> > > http://camel.apache.org/schema/spring;> > > > > > > > > > > > > > > > I keep getting this error: > > Cannot invoke "org.apache.camel.spi.ManagementAgent.g

Re: Adding http(s) compatibility to a component (for discoverable service compatibility)

2023-12-30 Thread Claus Ibsen
at, Dec 30, 2023 at 3:57 PM Claus Ibsen wrote: > Hi > > A discoverable service? Do you mean some kind of external service registry > ala Consul, Kubernetes ? > Camel is not everyhing, and if you need a service registry then favour to > use those kind of products that does th

Re: Adding http(s) compatibility to a component (for discoverable service compatibility)

2023-12-30 Thread Claus Ibsen
gt; more detailed section to the manual to help others get started with > implementation? > > Thanks, > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Using simple expression to get header value in spring xml

2023-12-03 Thread Claus Ibsen
sts for my component with Spring, and configuring in > xml. How can I specify these values so that it looks in the header, > instead of interpreting these as literal string values? > > uri="dynamic-router-control://subscribe"> > > > > &g

Re: org.apache.camel.springboot:camel-ftp-starter:4.2.0

2023-12-03 Thread Claus Ibsen
mplement sshd-mina instead in the > near future? > > Our security team is a bit worried about downloading > com.hithub.mwiede:jsch as they deem that as a private library. > > Regards, > Ravi > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Trying to simplify my component by using a reifier

2023-12-03 Thread Claus Ibsen
instance directly. > > Hi I think this seems to complicated and also caused a lot of routes to be added dynamically based on channel names. And that is overhead as the route would then just be a from -> to. > Thanks, > Steve > > > > On Wed, Nov 29, 2023 at

Re: Registry binding, unbinding, and re-binding seems odd

2023-12-03 Thread Claus Ibsen
s the bean by name, it is > still using the original/temporary processor that I used "unbind" on!. I > confirmed this because that temporary processor prints out a LOG message at > the error level. > > What could the problem be? > > Thanks, > Steve > -- Claus I

Re: How to instantiate out Exchange manually (or automatically)

2023-11-28 Thread Claus Ibsen
tely. Internet emails are not necessarily > secure, and Caisse des Depots et Consignations declines responsibility for > any changes that may have been made to this email after it was sent. While > we take all reasonable precautions to ensure that viruses are not > transmitted via email

Re: Trying to simplify my component by using a reifier

2023-11-28 Thread Claus Ibsen
; use my component/endpoint configuration to set the options on the > RecipientList through the Reifier. It's a chicken/egg scenario: the > RecipientListReifier needs the Route, and the Route needs the processor. > > 3. What other approach am I missing that might be better t

Re: camel-http: $USER:$PASSWORD@$SERVER notation for basic auth no longer supported?

2023-11-22 Thread Claus Ibsen
> > Did I miss something? Is this an intentional behavior change or a bug? > > It works if I use > `to(" > https://localhost:8080/example?authenticationPreemptive=true=USER=PASSWORD > ")` > instead. > > Okay then use that. Its also the preferred way with using options instead of the uri authority that is very complex and something we will not support in the future moving away from java.net.Uri object. > Thanks and kind regards, > Pascal > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Issues by using Camel Report Maven Plugin 3.21.x

2023-11-22 Thread Claus Ibsen
ed class was missing while executing > org.apache.camel:camel-report-maven-plugin:3.21.2:validate: > org.eclipse.aether.connector.basic.BasicRepositoryConnectorFactory > > Any ideas of how to fix that? > > Regards > Michael > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: aggregate EIP: wrong correlation key set for aggregate exchanges

2023-11-21 Thread Claus Ibsen
18-batch-4.zip > 06:34:33.485 INFO [Aggregator] zip-files-2.yaml:135 : Send batch-4 > 06:34:33.486 TRACE [Aggregator] e.AggregateProcessor : Aggregated exchange > onComplete: Exchange[7F40FFF506AA26C-0001] > 06:34:33.486 TRACE [Aggregator] e.AggregateProcessor : Processi

Re: Event / Exchange / Message timestamps

2023-11-20 Thread Claus Ibsen
etCreated()); > System.out.println("Timestamp 4 " + > exchange.getIn().getMessageTimestamp()); > > > Only timestamp 3 (exchange.getCreated()) gives a timestamp, but the others > are 0. For message timestamps this can be correct (as that depends on > ActiveMQ etc), but shou

Re: Question about Lombok use

2023-11-19 Thread Claus Ibsen
that means something you need to write more unit tests code in standard Java with JUnit. And yes we use docker test containers for integration tests, and there is the "camel-test-infra" that can make this easier. On Sun, Nov 19, 2023 at 2:12 PM Claus Ibsen wrote: > Hi > > No lo

Re: Question about Lombok use

2023-11-19 Thread Claus Ibsen
the aforementioned > boilerplate. The license also seems compatible. Is this something that > can be used in the coding of a component? If not, could somebody please > explain the problem with it? > > Thanks, > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-19 Thread Claus Ibsen
Hi You can also look at using onCompletion https://camel.apache.org/manual/oncompletion.html On Sat, Nov 18, 2023 at 8:36 PM Claus Ibsen wrote: > Hi > > I would also add that HTTP servers like Tomcat, Jetty, JBoss etc have an > access log that logs how long time each r

Re: How to check if an message on an exchange has attachments?

2023-11-19 Thread Claus Ibsen
Claus Ibsen wrote: > Hi > > You can look in the source of camel-attachments and see how they are > stored and then do it by checking for exchange property > key CamelAttachmentObjects exists and is not empty > > On Tue, Nov 14, 2023 at 9:21 PM ski n wrote: > >>

Re: How to check if an message on an exchange has attachments?

2023-11-19 Thread Claus Ibsen
lass > > > > The parameter is seen as a String object, instead of AttachmentMessage > > object. How to properly pass the type parameter in the XML DSL with a > > simple expression? If there is an alternative way to check attachments > this > > also fine, but I'm trying to avoid using processors or bean invocation > > though. > > > > Raymond > > > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Is URI redirection possible?

2023-11-19 Thread Claus Ibsen
aner if I could redirect, if > possible. > > Thank you! > Steve > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-18 Thread Claus Ibsen
; you need. On Sat, Nov 18, 2023 at 8:34 PM Claus Ibsen wrote: > Hi > > Camel will send back the response at the end of the route in the consumer, > so what you do in that route example will not work. > However if you want to do some kind of custom logging of how long it > takes, th

Re: Jetty Component how to add additional steps after send http response back to the client

2023-11-18 Thread Claus Ibsen
System.currentTimeMillis())) > .setBody(constant("hello")) > // I expect jetty send response back to client here. > .process(exchange -> exchange.setProperty("backend respond timestamp", > System.currentTimeMillis())); > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Route group

2023-11-17 Thread Claus Ibsen
d I make a Jira issue for this as > enhancement request? > > Raymond > > On Fri, Nov 17, 2023 at 9:07 AM Claus Ibsen wrote: > > > 1 2 3 yes > > 4 no > > > > > > > > On Fri, Nov 17, 2023 at 8:26 AM ski n wrote: > > > > > Recently

Re: Route group

2023-11-17 Thread Claus Ibsen
yFlouwId gets the related routes for a group and then loops > them one by one. This however with large groups can take a while. Would be > nice to do something like this: > > routeController.stopGroup("groupId") > > Raymond > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Stream closed while unzipping in a container

2023-11-03 Thread Claus Ibsen
> error or more a permission problem to the spooldirectory or is this > something else? > > Raymond > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: camel-k access context from different integrations

2023-10-30 Thread Claus Ibsen
context of one camel-k integration from another camel-k > integration? > > e.g a.groovy has bean 'a' > Can we access bean 'a' from b.groovy ? > > Thank you, > Narsi > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: DefaultMaskingFormatter

2023-10-21 Thread Claus Ibsen
ody is logged. > I am unsure if this is a known issue, of I have configured masking > incorrectly. > > Best regards > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: YAML DSL route loader seems to ignore "id" attribute

2023-10-19 Thread Claus Ibsen
INFO 17160 --- [ main] > > o.a.c.impl.engine.AbstractCamelContext : Started myRoute1 > > (timer://tick) > > 2023-10-19T10:41:34.142+02:00 INFO 17160 --- [ main] > > o.a.c.impl.engine.AbstractCamelContext : Started route1 > (timer://tick) > > 2023-10-19T10:41:34.142+02:00 INFO 17160 --- [ main] > > o.a.c.impl.engine.AbstractCamelContext : Apache Camel 4.0.1 (camel-1) > > started in 15ms (build:0ms init:0ms start:15ms) > > ... > > > > Note that the XML route was loaded using the correct ID (myRoute1), but > > the YAML is using a generic ID (route1). I would expect that the output > is: > > Routes startup (started:2) > > Started myRoute1 (timer://tick) > > Started myRoute2 (timer://tick) > > Apache Camel 4.0.1 (camel-1) started in ... > > > > Tested and verified with Camel v4.0.1 and v4.1.0 > > > > So, it seems like a bug in the YAML route builder. What do you think? > > > > Thank you & kind regards, > > Steffen > > > > // added to skip company footer: 27948 // > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: HttpServletRequest and Platform HTTP

2023-10-18 Thread Claus Ibsen
PR. > Regards, > > Fyodor > > On 17.10.2023 10:59, Claus Ibsen wrote: > > Hi > > > > You usually just set the a camel message header with the HTTP key/value > for > > redirect, something ala: > > > > > > exchange.getMessage().setHeader(

Re: Converter not loading properly with Camel4

2023-10-18 Thread Claus Ibsen
onfiguration or dependency that > needs to be added in pom.xml or somewhere else to make it working then > please let me know. > > -- > Regards, > Kushagra > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: HttpServletRequest and Platform HTTP

2023-10-17 Thread Claus Ibsen
some hint on that? > > On 16.10.2023 11:18, Claus Ibsen wrote: > > Hi > > > > I created a ticket > > https://issues.apache.org/jira/browse/CAMEL-19994 > > > > Yeah check vertx-http docs what it offers > > https://vertx.io/docs/vertx-web/java/ > > >

Re: HttpServletRequest and Platform HTTP

2023-10-16 Thread Claus Ibsen
nd some "vertx > json eventbus", so I'm sorry to admit I'm a bit lost. > > in essence I need 2 things: organize some sort of a session with a > session state (through cookies or if camel vertx component allows, > differently), and be able to read/print raw bytes to/fro

Re: HttpServletRequest and Platform HTTP

2023-10-16 Thread Claus Ibsen
= http.getBody(HttpServletRequest.class);`. > > > Thank you! > > -fedd > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Kafka client default values out of sync to the origin one

2023-10-10 Thread Claus Ibsen
ple: > > - session.timeout.ms ( > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-735%3A+Increase+default+consumer+session+timeout > > ) > > - request.timeout.ms ( > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP-266%3A+Fix+consumer+inde

Re: Undertow HTTP client

2023-10-10 Thread Claus Ibsen
TTP-clients already use them without any configuration. > > How can we configure the undertow component to use the default system > certificates? > > Thanks > Martin > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How to properly remove a routeConfiguration

2023-10-07 Thread Claus Ibsen
ze(); > > Before removal I get 1 and after removal I get 0. > > Note 3: On the CamelContext (context) there is: > > context.addRoutesConfigurations(); > > But there are no methods like getRoutesConfigurations or > removeRouteConfiguration(routeId); > > Kind regards, > > Raymond > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel 4 migration blog post - Feedback welcome

2023-10-07 Thread Claus Ibsen
ce=false > > Oh is this a default change in Kafka itself (eg upgrade of kafka-client) or something thay may have changed in Camel 3 -> 4. We can add a note about this in the 4.0 migration guide. You are welcome to send a PR. > On Fri, Oct 6, 2023 at 3:49 AM Claus Ibsen wrote: > &

Re: Camel 4 migration blog post - Feedback welcome

2023-10-07 Thread Claus Ibsen
at got us was, since we were using kafka with security but > not > > using Kafka idempotency, we had to add the following flag. As usual, > kafka > > messages were not helpful. > > > > camel.component.kafka.enable-idempotence=false > > > > On Fri, Oct 6, 20

Re: Camel 4 migration blog post - Feedback welcome

2023-10-06 Thread Claus Ibsen
any issues. > > > > I'm planning to use OpenRewrite to update to Spring Boot 3/Jakarta ( > > https://docs.openrewrite.org/recipes/java/spring/boot3). If there was a > > recipe to move to Camel 4 then it would be probably easier to do the > > migration. > > > > R

Re: Camel 4 migration blog post - Feedback welcome

2023-10-06 Thread Claus Ibsen
write.org/recipes/java/spring/boot3). If there was a > recipe to move to Camel 4 then it would be probably easier to do the > migration. > > Raymond > > > On Fri, Oct 6, 2023 at 9:49 AM Claus Ibsen wrote: > > > Hi > > > > If you have been migrating to Camel

Camel 4 migration blog post - Feedback welcome

2023-10-06 Thread Claus Ibsen
Hi If you have been migrating to Camel 4 already, then any feedback is welcome. You can comment in the PR, or post here in the mailing list https://github.com/apache/camel-website/pull/1071 -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel Kafka consumer dynamic topic

2023-10-03 Thread Claus Ibsen
Hi I created a ticket https://issues.apache.org/jira/browse/CAMEL-19945 On Tue, Oct 3, 2023 at 9:22 AM Claus Ibsen wrote: > Hi > > If you use Java RouteBuilder, then you can maybe use spring dependency > injection, to inject the topic name into a String field, > and then use

Re: Camel Kafka consumer dynamic topic

2023-10-03 Thread Claus Ibsen
up until I am > able to fetch the topic name. How do I then have a route created at > runtime that uses the topic name from the rest endpoint? > > -- > Best, > Girish Vasmatkar > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: How do I setup camel-rest in combination with spring-webflux-netty?

2023-09-21 Thread Claus Ibsen
How do i configure things so that the rest endpoint is accessible via the > Spring server port? Can anyone show me directions? > > Thanks in advance, >Alphonse > > > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Jetty and the Invalid SNI

2023-09-21 Thread Claus Ibsen
that we have to switch off the SNI check for Jetty > through some Secure Request Customizer, but I fail to understand how do > I pass it to the Jetty server; or maybe there is a more generic API for > doing that through the JSSE? > https://camel.apache.org/manual/camel-configuration-utilities.html > > > Thanks! > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: JMS Batch Consumer

2023-09-21 Thread Claus Ibsen
ecords per request was around 75 > when using the sjms-batch component) > > Two questions: > > 1- Are there are any news whether the possibility to consume message in > Batches from a JMS Broker will be reinstated in Camel 4? > > 2- Do you guys have any proposals how the desired beh

Re: InterceptSendToEndpoint and access the intercepted endpoint details?

2023-09-17 Thread Claus Ibsen
h I intercepted? > > For example if I have Log-component in my route and I use > InterceptSendToEndpoint to intercept the request, can I somehow check the > details of the intercepted Log-component (like parameters etc.)? > > Thank you in advance. > > Bes

Re: Parse xml or yaml snippet into a Processor

2023-09-17 Thread Claus Ibsen
that usually are parts of > the route? Camel 4. Like > > > > ${body[0]} > > > > or > > > - unmarshal: > csv: >delimiter: ";" >useMaps: "true" > > > Thank you! > > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

Re: Camel & Virtual threads

2023-09-01 Thread Claus Ibsen
19th September). > > In the Camel 4 blog "What's new" it states that: > > "We plan to support Java 21 on next LTS released by the end of this year." > > Camel next LTS release (4.2) is expected around December. > > I was wondering what the plans here are

Re: Global limit to threads count used by Camel (engine + routes pools + ..)

2023-08-28 Thread Claus Ibsen
table amount of memory used > by the JVM (once setting heap, code caching and so on) > > Do you have any idea or documentation to point me to? > > Thank for your support. > > Regards, > Riccardo Modanese > -- Claus Ibsen - @davsclaus Camel in Action 2: https://www.manning.com/ibsen2

  1   2   3   4   5   6   7   8   9   10   >