Re: [ANNOUNCE] Apache Camel 4.2.0 Released
This is the first version where you can run your camel route with Java 21. The release is still built with JDK 17. We are waiting for feedback! Thanks Il mar 14 nov 2023, 21:31 ski n ha scritto: > Great! > > Is this the first version that fully supports Java 21? > > Raymond > > On Tue, Nov 14, 2023 at 8:54 PM Gregor Zurowski > wrote: > > > The Camel PMC is pleased to announce the release of Apache Camel 4.2.0. > > > > Apache Camel is an open source integration framework that empowers you > > to quickly and easily integrate various systems consuming or producing > > data. > > > > This release contains 115 new features and improvements. > > > > The release is available for immediate download at: > > > > https://camel.apache.org/download/ > > > > For more details please take a look at the release notes at: > > > > https://camel.apache.org/releases/release-4.2.0/ > > >
Re: [ANNOUNCE] Apache Camel 4.2.0 Released
Great! Is this the first version that fully supports Java 21? Raymond On Tue, Nov 14, 2023 at 8:54 PM Gregor Zurowski wrote: > The Camel PMC is pleased to announce the release of Apache Camel 4.2.0. > > Apache Camel is an open source integration framework that empowers you > to quickly and easily integrate various systems consuming or producing > data. > > This release contains 115 new features and improvements. > > The release is available for immediate download at: > > https://camel.apache.org/download/ > > For more details please take a look at the release notes at: > > https://camel.apache.org/releases/release-4.2.0/ >
Re: How to check if an message on an exchange has attachments?
As a workaround, I implemented it as follows: public class MyBean { public boolean hasAttachements(Exchange exchange) { return exchange.getIn(AttachmentMessage.class).hasAttachments(); } } And then call it from the Java DSL as: If there are better solution, I like to hear it. Raymond On Tue, Nov 14, 2023 at 8:12 PM ski n wrote: > > I need to check if a message has an attachment. > > In Camel2 I used the following expression: > > ${exchange.getIn().hasAttachments} > > As attachment was modularized in Camel 3, the hasAttachments method isn't > directly available on the exchange anymore (it now extends Message). > > Based on the documentation: > > https://camel.apache.org/components/3.20.x/others/attachments.html > > I tried: > > ${exchange.getIn(AttachmentMessage.class).hasAttachments} > > Using Java code directly this works, but from the XML DSL this gives: > > org.apache.camel.component.bean.ParameterBindingException: Error during > parameter binding on method: public abstract java.lang.Object > org.apache.camel.Exchange.getIn(java.lang.Class) at parameter #0 with type: > class java.lang.Class with value type: class java.lang.String and value: > AttachmentMessage.class > > 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 > >
[ANNOUNCE] Apache Camel 4.2.0 Released
The Camel PMC is pleased to announce the release of Apache Camel 4.2.0. Apache Camel is an open source integration framework that empowers you to quickly and easily integrate various systems consuming or producing data. This release contains 115 new features and improvements. The release is available for immediate download at: https://camel.apache.org/download/ For more details please take a look at the release notes at: https://camel.apache.org/releases/release-4.2.0/
How to check if an message on an exchange has attachments?
I need to check if a message has an attachment. In Camel2 I used the following expression: ${exchange.getIn().hasAttachments} As attachment was modularized in Camel 3, the hasAttachments method isn't directly available on the exchange anymore (it now extends Message). Based on the documentation: https://camel.apache.org/components/3.20.x/others/attachments.html I tried: ${exchange.getIn(AttachmentMessage.class).hasAttachments} Using Java code directly this works, but from the XML DSL this gives: org.apache.camel.component.bean.ParameterBindingException: Error during parameter binding on method: public abstract java.lang.Object org.apache.camel.Exchange.getIn(java.lang.Class) at parameter #0 with type: class java.lang.Class with value type: class java.lang.String and value: AttachmentMessage.class 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
[RESULT] [VOTE] Release Apache Camel 4.2.0
The vote passes with the following results: +1 binding: 7 (Alexandre Gallice, Andrea Cosentino, Babak Vahdat, Claus Ibsen, Gregor Zurowski, Otavio Rodolfo Piske, Zineb Bendhiba) +1 non-binding: 3 (Claudio Miranda, Gaëlle Fournier, Zheng Feng) I am going to publish the artifacts for Camel 4.2.0 shortly. Thanks, Gregor On Sat, Nov 11, 2023 at 2:00 PM Gregor Zurowski wrote: > > Hi Everyone: > > This is a vote to release Apache Camel 4.2.0, a new release with 115 > fixes and improvements. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353662=12311211 > > == Apache Camel 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1642/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1642/org/apache/camel/apache-camel/4.2.0/ > > Tag: https://github.com/apache/camel/releases/tag/camel-4.2.0 > > == Apache Camel Spring Boot 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1643/ > > Tag: > https://github.com/apache/camel-spring-boot/releases/tag/camel-spring-boot-4.2.0 > > Please test this release candidate and cast your vote: > [ ] +1 Release the binary as Apache Camel and Camel Spring Boot 4.2.0 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor
Re: [VOTE] Release Apache Camel 4.2.0
+ (binding) On Sat, Nov 11, 2023 at 2:00 PM Gregor Zurowski wrote: > > Hi Everyone: > > This is a vote to release Apache Camel 4.2.0, a new release with 115 > fixes and improvements. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353662=12311211 > > == Apache Camel 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1642/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1642/org/apache/camel/apache-camel/4.2.0/ > > Tag: https://github.com/apache/camel/releases/tag/camel-4.2.0 > > == Apache Camel Spring Boot 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1643/ > > Tag: > https://github.com/apache/camel-spring-boot/releases/tag/camel-spring-boot-4.2.0 > > Please test this release candidate and cast your vote: > [ ] +1 Release the binary as Apache Camel and Camel Spring Boot 4.2.0 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor
Re: [VOTE] Release Apache Camel 4.2.0
+1 (non-binding) Thanks Gregor! --- Gaëlle Fournier Le sam. 11 nov. 2023 à 14:01, Gregor Zurowski a écrit : > Hi Everyone: > > This is a vote to release Apache Camel 4.2.0, a new release with 115 > fixes and improvements. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353662=12311211 > > == Apache Camel 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1642/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1642/org/apache/camel/apache-camel/4.2.0/ > > Tag: https://github.com/apache/camel/releases/tag/camel-4.2.0 > > == Apache Camel Spring Boot 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1643/ > > Tag: > https://github.com/apache/camel-spring-boot/releases/tag/camel-spring-boot-4.2.0 > > Please test this release candidate and cast your vote: > [ ] +1 Release the binary as Apache Camel and Camel Spring Boot 4.2.0 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor >
Re: [VOTE] Release Apache Camel 4.2.0
+1 (binding) Thanks, Le sam. 11 nov. 2023 à 14:02, Gregor Zurowski a écrit : > Hi Everyone: > > This is a vote to release Apache Camel 4.2.0, a new release with 115 > fixes and improvements. > > Release notes: > https://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12353662=12311211 > > == Apache Camel 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1642/ > > Tarballs: > https://repository.apache.org/content/repositories/orgapachecamel-1642/org/apache/camel/apache-camel/4.2.0/ > > Tag: https://github.com/apache/camel/releases/tag/camel-4.2.0 > > == Apache Camel Spring Boot 4.2.0 == > > Staging repository: > https://repository.apache.org/content/repositories/orgapachecamel-1643/ > > Tag: > https://github.com/apache/camel-spring-boot/releases/tag/camel-spring-boot-4.2.0 > > Please test this release candidate and cast your vote: > [ ] +1 Release the binary as Apache Camel and Camel Spring Boot 4.2.0 > [ ] -1 Veto the release (provide specific comments) > > The vote is open for at least 72 hours. > > Thanks, > Gregor > -- Zineb Bendhiba
Re: Camel K: Can timeout of native build be configured?
Hi Franz. Yes, you need to set it up at IntegrationPlatform level: https://camel.apache.org/camel-k/2.1.x/apis/camel-k.html#_camel_apache_org_v1_IntegrationPlatformBuildSpec Just `kubectl edit ip` and set the timeout in the related spec configuration with the tuning you need. Cheers, Pasquale. On Tue, Nov 14, 2023 at 8:55 AM Franz Paul Forsthofer wrote: > Hello, > > sometimes the native build runs longer than the timeout of 10 minutes. > > Is it possible to configure the timeout contained in the Kubernetes > Build resource? > > spec: > configuration: {} > tasks: > ... > timeout: 10m0s > > Regards Franz >