[camel-kafka-connector] branch testcontainers-1.14.0 created (now 4793ac1)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch testcontainers-1.14.0 in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector.git. at 4793ac1 Upgrade Testcontainers to version 1.14.0 No new revisions were added by this update.
[GitHub] [camel-kafka-connector] oscerd opened a new pull request #126: Upgrade Testcontainers to version 1.14.0
oscerd opened a new pull request #126: Upgrade Testcontainers to version 1.14.0 URL: https://github.com/apache/camel-kafka-connector/pull/126 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel-spring-boot] branch master updated: Regen
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git The following commit(s) were added to refs/heads/master by this push: new 1f7f2a3 Regen 1f7f2a3 is described below commit 1f7f2a3ca42bcffd9ac7c663c1b7437a1b3f9011 Author: Claus Ibsen AuthorDate: Tue Apr 14 07:45:15 2020 +0200 Regen --- components-starter/README.adoc| 5 - docs/modules/ROOT/pages/list.adoc | 5 - 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/components-starter/README.adoc b/components-starter/README.adoc index 6f84a47..1e93a3b 100644 --- a/components-starter/README.adoc +++ b/components-starter/README.adoc @@ -5,7 +5,7 @@ Apache Camel Spring Boot supports the following Camel artifacts as Spring Boot S == Camel Components // components: START -Number of Camel components: 326 in 259 JAR artifacts (1 deprecated) +Number of Camel components: 327 in 260 JAR artifacts (1 deprecated) [width="100%",cols="4,1,5",options="header"] |=== @@ -296,6 +296,9 @@ Number of Camel components: 326 in 259 JAR artifacts (1 deprecated) | link:https://camel.apache.org/components/latest/disruptor-component.html[Disruptor] (camel-disruptor-starter) + `disruptor:name` | 2.12 | The disruptor component provides asynchronous SEDA behavior using LMAX Disruptor. +| link:https://camel.apache.org/components/latest/djl-component.html[DJL] (camel-djl-starter) + +`djl:application` | 3.2 | Represents a DJL endpoint. + | link:https://camel.apache.org/components/latest/dns-component.html[DNS] (camel-dns-starter) + `dns:dnsType` | 2.7 | To lookup domain information and run DNS queries using DNSJava. diff --git a/docs/modules/ROOT/pages/list.adoc b/docs/modules/ROOT/pages/list.adoc index 6f84a47..1e93a3b 100644 --- a/docs/modules/ROOT/pages/list.adoc +++ b/docs/modules/ROOT/pages/list.adoc @@ -5,7 +5,7 @@ Apache Camel Spring Boot supports the following Camel artifacts as Spring Boot S == Camel Components // components: START -Number of Camel components: 326 in 259 JAR artifacts (1 deprecated) +Number of Camel components: 327 in 260 JAR artifacts (1 deprecated) [width="100%",cols="4,1,5",options="header"] |=== @@ -296,6 +296,9 @@ Number of Camel components: 326 in 259 JAR artifacts (1 deprecated) | link:https://camel.apache.org/components/latest/disruptor-component.html[Disruptor] (camel-disruptor-starter) + `disruptor:name` | 2.12 | The disruptor component provides asynchronous SEDA behavior using LMAX Disruptor. +| link:https://camel.apache.org/components/latest/djl-component.html[DJL] (camel-djl-starter) + +`djl:application` | 3.2 | Represents a DJL endpoint. + | link:https://camel.apache.org/components/latest/dns-component.html[DNS] (camel-dns-starter) + `dns:dnsType` | 2.7 | To lookup domain information and run DNS queries using DNSJava.
[GitHub] [camel-quarkus] lburgazzoli commented on issue #1076: Fix #984 introduce the CamelContextCustomizerBuildItem
lburgazzoli commented on issue #1076: Fix #984 introduce the CamelContextCustomizerBuildItem URL: https://github.com/apache/camel-quarkus/pull/1076#issuecomment-613237154 > But I can not see your comments, is there anything wrong ? I left the review pending sorry, they should be visible now This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem
lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem URL: https://github.com/apache/camel-quarkus/pull/1076#discussion_r407343176 ## File path: extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/CamelContextCustomizerBuildItem.java ## @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.camel.quarkus.core.deployment; + +import io.quarkus.builder.item.SimpleBuildItem; +import io.quarkus.runtime.RuntimeValue; +import org.apache.camel.quarkus.core.CamelContextCustomizer; + +public class CamelContextCustomizerBuildItem extends SimpleBuildItem { Review comment: Need to be a multi build item as you may have more than one customizer This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem
lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem URL: https://github.com/apache/camel-quarkus/pull/1076#discussion_r407344140 ## File path: extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/Flags.java ## @@ -42,6 +42,13 @@ public boolean getAsBoolean() { } } +public static final class ContextCustomizerEnabled implements BooleanSupplier { Review comment: Not sure we need to have a flag to enable/disable customizers This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem
lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem URL: https://github.com/apache/camel-quarkus/pull/1076#discussion_r407343838 ## File path: extensions-core/core/runtime/src/main/java/org/apache/camel/quarkus/core/CamelContextCustomizer.java ## @@ -0,0 +1,24 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.camel.quarkus.core; + +import org.apache.camel.CamelContext; + +public interface CamelContextCustomizer { Review comment: This should ne marked as @FunctionalInterface or if you don’t plan to add any helper method it may be replaced by a Consumer This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem
lburgazzoli commented on a change in pull request #1076: Fix #984 introduce the CamelContextCustomizerBuildItem URL: https://github.com/apache/camel-quarkus/pull/1076#discussion_r407343004 ## File path: extensions-core/core/deployment/src/main/java/org/apache/camel/quarkus/core/deployment/BuildProcessor.java ## @@ -382,6 +382,13 @@ CamelContextBuildItem context( return new CamelContextBuildItem(context); } +@Record(value = ExecutionTime.STATIC_INIT, optional = true) +@BuildStep(onlyIf = Flags.ContextCustomizerEnabled.class) +void customCamelContext(CamelRecorder recorder, CamelContextBuildItem context, Review comment: This need to be done before the camel contex is published so like in the method that produce the CamelContextBuildItem This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated: CAMEL-14883 CamelBeanPostProcessor implements Ordered interface provided by Spring (lowest precedence) (#3731)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 4ec1d83 CAMEL-14883 CamelBeanPostProcessor implements Ordered interface provided by Spring (lowest precedence) (#3731) 4ec1d83 is described below commit 4ec1d838611ff0c6edb78502f97fd6198e9c6e78 Author: Björn Eickvonder AuthorDate: Tue Apr 14 06:52:44 2020 +0200 CAMEL-14883 CamelBeanPostProcessor implements Ordered interface provided by Spring (lowest precedence) (#3731) This avoids issues e.g. described in https://github.com/spring-projects/spring-framework/issues/24058 that occur if a bean post processor does not implement Ordered interface. --- .../main/java/org/apache/camel/spring/CamelBeanPostProcessor.java | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java b/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java index 0b5df53..993379b 100644 --- a/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java +++ b/components/camel-spring/src/main/java/org/apache/camel/spring/CamelBeanPostProcessor.java @@ -40,6 +40,7 @@ import org.springframework.beans.BeansException; import org.springframework.beans.factory.config.BeanPostProcessor; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; +import org.springframework.core.Ordered; /** * Spring specific {@link DefaultCamelBeanPostProcessor} which uses Spring {@link BeanPostProcessor} to post process beans. @@ -49,7 +50,7 @@ import org.springframework.context.ApplicationContextAware; @Metadata(label = "spring,configuration") @XmlRootElement(name = "beanPostProcessor") @XmlAccessorType(XmlAccessType.FIELD) -public class CamelBeanPostProcessor implements org.apache.camel.spi.CamelBeanPostProcessor, BeanPostProcessor, ApplicationContextAware { +public class CamelBeanPostProcessor implements org.apache.camel.spi.CamelBeanPostProcessor, BeanPostProcessor, ApplicationContextAware, Ordered { private static final Logger LOG = LoggerFactory.getLogger(CamelBeanPostProcessor.class); @XmlTransient Set prototypeBeans = new LinkedHashSet<>(); @@ -182,6 +183,11 @@ public class CamelBeanPostProcessor implements org.apache.camel.spi.CamelBeanPos } } +@Override +public int getOrder() { +return LOWEST_PRECEDENCE; +} + // Properties // -
[camel-spring-boot] branch automatic-periodic-sync updated (b8d8e01 -> 3052011)
This is an automated email from the ASF dual-hosted git repository. github-bot pushed a change to branch automatic-periodic-sync in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git. from b8d8e01 [create-pull-request] automated change add 2e77843 Merge pull request #44 from apache/automatic-periodic-sync add 3052011 Upgrade Groovy to version 3.0.3 No new revisions were added by this update. Summary of changes: pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
[GitHub] [camel-quarkus] zhfeng commented on issue #1076: Fix #984 introduce the CamelContextCustomizerBuildItem
zhfeng commented on issue #1076: Fix #984 introduce the CamelContextCustomizerBuildItem URL: https://github.com/apache/camel-quarkus/pull/1076#issuecomment-613166972 Thanks @lburgazzoli - I'm working on the tests and javadoc. But I can not see your comments, is there anything wrong ? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel-quarkus] branch http-log updated (d689e35 -> db969ff)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch http-log in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git. from d689e35 http-log example add db969ff Add license header No new revisions were added by this update. Summary of changes: .../http-log/src/main/resources/resources/index.html | 18 ++ 1 file changed, 18 insertions(+)
[camel-quarkus] 01/01: http-log example
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch http-log in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit d689e35bb4f8b808969364d99fc8eb9710d86a24 Author: Claus Ibsen AuthorDate: Mon Apr 13 19:11:38 2020 +0200 http-log example --- examples/http-log/README.adoc | 63 + examples/http-log/pom.xml | 99 ++ .../src/main/java/org/acme/http/CamelRoute.java| 32 + .../main/java/org/acme/http/ExampleResource.java | 32 + .../src/main/resources/application.properties | 44 ++ .../src/main/resources/resources/index.html| 152 + examples/pom.xml | 1 + 7 files changed, 423 insertions(+) diff --git a/examples/http-log/README.adoc b/examples/http-log/README.adoc new file mode 100644 index 000..b4f8ee6 --- /dev/null +++ b/examples/http-log/README.adoc @@ -0,0 +1,63 @@ += http-log + +This is a basic hello world example that uses CDI and JAX-RS to setup +a REST service and a Camel route to service HTTP traffic. + +TIP: Check the https://camel.apache.org/camel-quarkus/latest/first-steps.html[Camel Quarkus User guide] for prerequisites +and other general information. + +== Start in the Development mode + +[source,shell] + +$ mvn clean compile quarkus:dev -DnoDeps + + +The above command compiles the project, starts the application and lets the Quarkus tooling watch for changes in your +workspace. Any modifications in your project will automatically take effect in the running application. + +TIP: Please refer to the Development mode section of +https://camel.apache.org/camel-quarkus/latest/first-steps.html#_development_mode[Camel Quarkus User guide] for more details. + +You can from a web browser call the two services via + +- http://localhost:8080/hello +- http://localhost:8080/camel/hello + +There is also health check and metrics available from the following urls: + +- http://localhost:8080/health +- http://localhost:8080/metrcis + +=== Package and run the application + +Once you are done with developing you may want to package and run the application. + +TIP: Find more details about the JVM mode and Native mode in the Package and run section of +https://camel.apache.org/camel-quarkus/latest/first-steps.html#_package_and_run_the_application[Camel Quarkus User guide] + + JVM mode + +[source,shell] + +$ mvn clean package +$ java -jar target/*-runner.jar +... +[io.quarkus] (main) Quarkus 0.23.2 started in 1.163s. Listening on: http://[::]:8080 + + + Native mode + +IMPORTANT: Native mode requires having GraalVM and other tools installed. Please check the Prerequisites section +of https://camel.apache.org/camel-quarkus/latest/first-steps.html#_prerequisites[Camel Quarkus User guide]. + +To prepare a native executable using GraalVM, run the following command: + +[source,shell] + +$ mvn clean package -Pnative +$ ./target/*-runner +... +[io.quarkus] (main) Quarkus 0.23.2 started in 0.013s. Listening on: http://[::]:8080 +... + diff --git a/examples/http-log/pom.xml b/examples/http-log/pom.xml new file mode 100644 index 000..059a05b --- /dev/null +++ b/examples/http-log/pom.xml @@ -0,0 +1,99 @@ + + +http://maven.apache.org/POM/4.0.0; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd;> + +org.apache.camel.quarkus +camel-quarkus-build-parent +1.1.0-SNAPSHOT +../../poms/build-parent/pom.xml + + +4.0.0 + +camel-quarkus-examples-http-log +Camel Quarkus :: Examples :: HTTP Log +Camel Quarkus Example :: HTTP to Log + + + + + + + + + camel-quarkus-log-deployment,camel-quarkus-support-policy-deployment,camel-quarkus-timer-deployment + + + + +io.quarkus +quarkus-resteasy + + + +org.apache.camel.quarkus +camel-quarkus-platform-http + + +org.apache.camel.quarkus +camel-quarkus-log + + +org.apache.camel.quarkus +camel-quarkus-microprofile-health + + +org.apache.camel.quarkus +camel-quarkus-microprofile-metrics + + + + + + +io.quarkus +quarkus-maven-plugin + + +build + +build + + + + + + + + + +native + + +native + + + +native + + +
[GitHub] [camel-quarkus] davsclaus opened a new pull request #1079: http-log example
davsclaus opened a new pull request #1079: http-log example URL: https://github.com/apache/camel-quarkus/pull/1079 [ ] An issue should be filed for the change unless this is a trivial change (fixing a typo or similar). One issue should ideally be fixed by not more than one commit and the other way round, each commit should fix just one issue, without pulling in other changes. [ ] Each commit in the pull request should have a meaningful and properly spelled subject line and body. Copying the title of the associated issue is typically enough. Please include the issue number in the commit message prefixed by #. [ ] The pull request description should explain what the pull request does, how, and why. If the info is available in the associated issue or some other external document, a link is enough. [ ] Phrases like Fix # or Fixes # will auto-close the named issue upon merging the pull request. Using them is typically a good idea. [ ] Please run mvn process-resources -Pformat (and amend the changes if necessary) before sending the pull request. [ ] Contributor guide is your good friend: https://camel.apache.org/camel-quarkus/latest/contributor-guide.html This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel-quarkus] branch http-log created (now d689e35)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch http-log in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git. at d689e35 http-log example This branch includes the following new commits: new d689e35 http-log example The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference.
[camel-karaf] branch master updated: Upgrade Groovy to version 3.0.3
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-karaf.git The following commit(s) were added to refs/heads/master by this push: new 1cd3c5a Upgrade Groovy to version 3.0.3 1cd3c5a is described below commit 1cd3c5a3482e7f67dd983327641cdf9a03e0e37f Author: Andrea Cosentino AuthorDate: Mon Apr 13 19:01:01 2020 +0200 Upgrade Groovy to version 3.0.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5bb1b0d..3aed686 100644 --- a/pom.xml +++ b/pom.xml @@ -327,7 +327,7 @@ 0.13.0 14.0 2.3.25 -3.0.2 +3.0.3 1.28.0 0.19.0 28.2-jre
[camel-spring-boot] branch master updated: Upgrade Groovy to version 3.0.3
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-spring-boot.git The following commit(s) were added to refs/heads/master by this push: new 3052011 Upgrade Groovy to version 3.0.3 3052011 is described below commit 30520118addec7166a0dd496f28f1f6a4983b23e Author: Andrea Cosentino AuthorDate: Mon Apr 13 18:59:53 2020 +0200 Upgrade Groovy to version 3.0.3 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5a59b52..c5a45b3 100644 --- a/pom.xml +++ b/pom.xml @@ -131,7 +131,7 @@ 1.1.3 ${jakarta-jaxb-version} 19.0 -3.0.2 +3.0.3 28.2-jre 1.28.0 2.8.5
[camel] branch master updated: removed duplicate lines
This is an automated email from the ASF dual-hosted git repository. cmueller pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 641b86f removed duplicate lines 641b86f is described below commit 641b86f207e67ae2660e7e7706028f1a8ba0edf6 Author: Christian Mueller AuthorDate: Mon Apr 13 15:23:42 2020 +0200 removed duplicate lines --- .../src/main/java/org/apache/camel/component/jms/JmsConfiguration.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java index 589a2fd..5da5131 100644 --- a/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java +++ b/components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsConfiguration.java @@ -1466,8 +1466,6 @@ public class JmsConfiguration implements Cloneable { protected void configureMessageListenerContainer(AbstractMessageListenerContainer container, JmsEndpoint endpoint) throws Exception { container.setConnectionFactory(getOrCreateListenerConnectionFactory()); -container.setConnectionFactory(getOrCreateListenerConnectionFactory()); -container.setConnectionFactory(getOrCreateListenerConnectionFactory()); if (endpoint instanceof DestinationEndpoint) { container.setDestinationResolver(createDestinationResolver((DestinationEndpoint) endpoint)); } else if (destinationResolver != null) {
[GitHub] [camel-k] akieling commented on issue #1403: Failed to read a GraphQL query from a ConfigMap
akieling commented on issue #1403: Failed to read a GraphQL query from a ConfigMap URL: https://github.com/apache/camel-k/issues/1403#issuecomment-612868338 @nicolaferraro The issue seems to be in the Camel code, not in the Camel K code. Shall I close this issue? This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-k] akieling commented on issue #1403: Failed to read a GraphQL query from a ConfigMap
akieling commented on issue #1403: Failed to read a GraphQL query from a ConfigMap URL: https://github.com/apache/camel-k/issues/1403#issuecomment-612863354 Yep, there seems to be an issue with the parser when the property values contain double curly braces. About my example, thanks for letting me know that I should be using the `--resource` flag to expose the GraphQL query file to the app. It's working fine the following way: Command ``` kamel run hello.groovy --resource hello.graphql ``` hello.groovy ``` from('timer:tick?period=10s') .to("graphql://https://countries.trevorblades.com/?queryFile=hello.graphql;) .to('log:info') ``` hello.graphql ``` query Continents { continents { code name } } ``` Output ``` ... 2020-04-13 11:31:11.324 [32mINFO [m [Camel (camel-k) thread #1 - timer://tick] info - Exchange[ExchangePattern: InOnly, BodyType: String, Body: {"data":{"continents":[{"code":"AF","name":"Africa"},{"code":"AN","name":"Antarctica"},{"code":"AS","name":"Asia"},{"code":"EU","name":"Europe"},{"code":"NA","name":"North America"},{"code":"OC","name":"Oceania"},{"code":"SA","name":"South America"}]}}] ... ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated: Upgrade asm-tree to version 8.0.1
This is an automated email from the ASF dual-hosted git repository. pascalschumacher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 89e5819 Upgrade asm-tree to version 8.0.1 89e5819 is described below commit 89e581959e0a6423f83cc37de6b1533115827ba1 Author: Pascal Schumacher AuthorDate: Mon Apr 13 12:42:01 2020 +0200 Upgrade asm-tree to version 8.0.1 --- tooling/maven/camel-package-maven-plugin/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tooling/maven/camel-package-maven-plugin/pom.xml b/tooling/maven/camel-package-maven-plugin/pom.xml index 14bf9ec..1d2ed06 100644 --- a/tooling/maven/camel-package-maven-plugin/pom.xml +++ b/tooling/maven/camel-package-maven-plugin/pom.xml @@ -157,7 +157,7 @@ org.ow2.asm asm-tree -7.0 +8.0.1
[camel] branch master updated: Make NsqProducerTest#testProducer more stable on builds.apache.org by increasing the timeout.
This is an automated email from the ASF dual-hosted git repository. pascalschumacher pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 58097e0 Make NsqProducerTest#testProducer more stable on builds.apache.org by increasing the timeout. 58097e0 is described below commit 58097e02e7a630111bd68bf634fc6c08fca0a46d Author: Pascal Schumacher AuthorDate: Mon Apr 13 12:17:26 2020 +0200 Make NsqProducerTest#testProducer more stable on builds.apache.org by increasing the timeout. --- .../src/test/java/org/apache/camel/component/nsq/NsqProducerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-nsq/src/test/java/org/apache/camel/component/nsq/NsqProducerTest.java b/components/camel-nsq/src/test/java/org/apache/camel/component/nsq/NsqProducerTest.java index 7291fbe..783bf61 100644 --- a/components/camel-nsq/src/test/java/org/apache/camel/component/nsq/NsqProducerTest.java +++ b/components/camel-nsq/src/test/java/org/apache/camel/component/nsq/NsqProducerTest.java @@ -50,7 +50,7 @@ public class NsqProducerTest extends NsqTestSupport { }); consumer.start(); -lock.await(30, TimeUnit.SECONDS); +lock.await(60, TimeUnit.SECONDS); assertEquals(1, counter.get()); consumer.shutdown();
[GitHub] [camel-quarkus] davsclaus opened a new issue #1078: Camel JMX is logged as enabled for native compiled example
davsclaus opened a new issue #1078: Camel JMX is logged as enabled for native compiled example URL: https://github.com/apache/camel-quarkus/issues/1078 As JMX is not possible in native compiled, then we should not have Camel log as if JMX was enabled. ``` ❯ target/camel-quarkus-examples-timer-log-cdi-1.1.0-SNAPSHOT-runner __ __ _ ___ __ __ --/ __ \/ / / / _ | / _ \/ //_/ / / / __/ -/ /_/ / /_/ / __ |/ , _/ ,< / /_/ /\ \ --\___\_\/_/ |_/_/|_/_/|_|\/___/ 2020-04-13 11:50:47,892 INFO [org.apa.cam.mai.BaseMainSupport] (main) Auto-configuration summary: 2020-04-13 11:50:47,892 INFO [org.apa.cam.mai.BaseMainSupport] (main) camel.context.name=quarkus-camel-example-timer-log-cdi 2020-04-13 11:50:47,893 INFO [org.apa.cam.imp.eng.DefaultManagementStrategy] (main) JMX is enabled 2020-04-13 11:50:47,894 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.2.0 (CamelContext: quarkus-camel-example-timer-log-cdi) is starting 2020-04-13 11:50:47,894 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) StreamCaching is not in use. If using streams then its recommended to enable stream caching. See more details at http://camel.apache.org/stream-caching.html 2020-04-13 11:50:47,895 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Route: route1 started and consuming from: timer://foo 2020-04-13 11:50:47,895 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Total 1 routes, of which 1 are started 2020-04-13 11:50:47,895 INFO [org.apa.cam.imp.eng.AbstractCamelContext] (main) Apache Camel 3.2.0 (CamelContext: quarkus-camel-example-timer-log-cdi) started in 0.001 seconds 2020-04-13 11:50:47,895 INFO [io.quarkus] (main) camel-quarkus-examples-timer-log-cdi 1.1.0-SNAPSHOT (powered by Quarkus 1.3.2.Final) started in 0.018s. 2020-04-13 11:50:47,895 INFO [io.quarkus] (main) Profile prod activated. 2020-04-13 11:50:47,895 INFO [io.quarkus] (main) Installed features: [camel-core, camel-log, camel-support-common, camel-timer, cdi] 2020-04-13 11:50:48,895 INFO [example] (Camel (quarkus-camel-example-timer-log-cdi) thread #0 - timer://foo) Exchange[Body: Incremented the counter: 1] ``` This is from the timer-cdi example after native compilation and running. Notice how it logs ``` 2020-04-13 11:50:47,893 INFO [org.apa.cam.imp.eng.DefaultManagementStrategy] (main) JMX is enabled ``` This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] davsclaus commented on issue #1066: Remove the need for registering RestBindingJaxbDataFormatFactory service
davsclaus commented on issue #1066: Remove the need for registering RestBindingJaxbDataFormatFactory service URL: https://github.com/apache/camel-quarkus/issues/1066#issuecomment-612833610 Just a heads up that JAXB is optional in Camel 3.3.0 rest-dsl and only loaded when needed (add camel-core-jaxb as dependency on classpath). Like for other optional JAXB/XML stuff. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] davsclaus commented on issue #1077: Is quarkus.ssl.native=true still needed
davsclaus commented on issue #1077: Is quarkus.ssl.native=true still needed URL: https://github.com/apache/camel-quarkus/issues/1077#issuecomment-612833220 For example timer-log vs timer-log-cdi This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[GitHub] [camel-quarkus] davsclaus opened a new issue #1077: Is quarkus.ssl.native=true still needed
davsclaus opened a new issue #1077: Is quarkus.ssl.native=true still needed URL: https://github.com/apache/camel-quarkus/issues/1077 There are a bunch of examples that has quarkus.ssl.native=true In their application.properties. And others dont. Is still still needed? I tried the timer-log example and remove this option and was able to do native compilation and run the example. This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel-quarkus] branch master updated (fcb9d4b -> 6c2595c)
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a change to branch master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git. from fcb9d4b Merge pull request #1073 from apache/camel-quarkus-1.0.0-M6 add 78063f1 Polished add 6c2595c The JAXB dependency is no longer needed for this example No new revisions were added by this update. Summary of changes: examples/timer-log-cdi/src/main/resources/application.properties | 4 ++-- examples/timer-log/pom.xml | 4 2 files changed, 2 insertions(+), 6 deletions(-)
[GitHub] [camel-website] avgupt opened a new pull request #343: Open external links in new tab
avgupt opened a new pull request #343: Open external links in new tab URL: https://github.com/apache/camel-website/pull/343 Fixes: https://issues.apache.org/jira/browse/CAMEL-13888 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel] branch master updated: Upgrade builder helper plugin
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new 7b7201e Upgrade builder helper plugin 7b7201e is described below commit 7b7201e37441327f3e6f05c711af07a708917659 Author: Claus Ibsen AuthorDate: Mon Apr 13 10:41:57 2020 +0200 Upgrade builder helper plugin --- parent/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parent/pom.xml b/parent/pom.xml index 10c1f52..022c99a 100644 --- a/parent/pom.xml +++ b/parent/pom.xml @@ -88,7 +88,7 @@ 2.46.0 2.108.0 5.11.2 - 1.12 + 3.1.0 0.9.5.5 2.8.1 2.0.0
[camel-examples] branch master updated: Polished
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-examples.git The following commit(s) were added to refs/heads/master by this push: new c90f64d Polished c90f64d is described below commit c90f64d538c8fadf9aea14a182118da77aad9c3c Author: Claus Ibsen AuthorDate: Mon Apr 13 10:01:18 2020 +0200 Polished --- examples/camel-example-main-tiny/pom.xml | 11 --- 1 file changed, 11 deletions(-) diff --git a/examples/camel-example-main-tiny/pom.xml b/examples/camel-example-main-tiny/pom.xml index b5f331e..f43412a 100644 --- a/examples/camel-example-main-tiny/pom.xml +++ b/examples/camel-example-main-tiny/pom.xml @@ -55,17 +55,6 @@ org.apache.camel camel-main - - - -org.apache.camel -camel-caffeine-lrucache - - -org.apache.camel -camel-headersmap - -
[camel-examples] branch master updated: Tiny example with source code generated configurer
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-examples.git The following commit(s) were added to refs/heads/master by this push: new 738c67f Tiny example with source code generated configurer 738c67f is described below commit 738c67f327d176ab345576c47608368d8296ceae Author: Claus Ibsen AuthorDate: Mon Apr 13 09:53:49 2020 +0200 Tiny example with source code generated configurer --- examples/camel-example-main-tiny/pom.xml | 42 examples/camel-example-main-tiny/readme.adoc | 6 +-- .../org/apache/camel/example/MyBeanConfigurer.java | 45 ++ .../services/org/apache/camel/configurer/MyBean| 2 + .../org/apache/camel/example/MyApplication.java| 3 -- .../main/java/org/apache/camel/example/MyBean.java | 14 --- .../org/apache/camel/example/MyConfiguration.java | 37 -- .../org/apache/camel/example/MyRouteBuilder.java | 2 +- .../src/main/resources/application.properties | 5 ++- 9 files changed, 95 insertions(+), 61 deletions(-) diff --git a/examples/camel-example-main-tiny/pom.xml b/examples/camel-example-main-tiny/pom.xml index dacd76b..b5f331e 100644 --- a/examples/camel-example-main-tiny/pom.xml +++ b/examples/camel-example-main-tiny/pom.xml @@ -93,16 +93,44 @@ - - + org.apache.camel -camel-main-maven-plugin +camel-package-maven-plugin ${camel.version} - -false - + + +generate + +generate-component + + + + + + +org.codehaus.mojo +build-helper-maven-plugin +3.1.0 + + +generate-sources + +add-source +add-resource + + + +src/generated/java + + + + src/generated/resources + + + + + diff --git a/examples/camel-example-main-tiny/readme.adoc b/examples/camel-example-main-tiny/readme.adoc index f6f7ce7..dd99121 100644 --- a/examples/camel-example-main-tiny/readme.adoc +++ b/examples/camel-example-main-tiny/readme.adoc @@ -5,11 +5,7 @@ on the classpath as possible. For more details see the `pom.xml` file. This example shows how to run Camel standalone via the built-in Main class. -The example also demonstrates how you can configure the Camel application -via Camel built-in dependency-injection that supports binding via the -`@BindToRegistry`, `@BeanInject` and `@PropertyInject` annotations. - -Also notice how you can configure Camel in the `application.properties` file. +Notice how you can configure Camel in the `application.properties` file. === How to run diff --git a/examples/camel-example-main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java b/examples/camel-example-main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java new file mode 100644 index 000..73d4b8e --- /dev/null +++ b/examples/camel-example-main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java @@ -0,0 +1,45 @@ +/* Generated by camel build tools - do NOT edit this file! */ +package org.apache.camel.example; + +import java.util.Map; + +import org.apache.camel.CamelContext; +import org.apache.camel.spi.GeneratedPropertyConfigurer; +import org.apache.camel.spi.PropertyConfigurerGetter; +import org.apache.camel.util.CaseInsensitiveMap; +import org.apache.camel.example.MyBean; + +/** + * Generated by camel build tools - do NOT edit this file! + */ +@SuppressWarnings("unchecked") +public class MyBeanConfigurer extends org.apache.camel.support.component.PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter { + +@Override +public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) { +org.apache.camel.example.MyBean target = (org.apache.camel.example.MyBean) obj; +switch (ignoreCase ? name.toLowerCase() : name) { +case "hi": +case "Hi": target.setHi(property(camelContext, java.lang.String.class, value)); return true; +default: return false; +} +}
[camel] branch master updated: Regen
This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git The following commit(s) were added to refs/heads/master by this push: new e3842ea Regen e3842ea is described below commit e3842ea0a767d36881e593f0b6dd11bc0d457fec Author: Claus Ibsen AuthorDate: Mon Apr 13 09:23:18 2020 +0200 Regen --- .../modules/ROOT/pages/jetty-component.adoc| 98 ++ 1 file changed, 98 insertions(+) diff --git a/docs/components/modules/ROOT/pages/jetty-component.adoc b/docs/components/modules/ROOT/pages/jetty-component.adoc index 92ef397..e223aaa 100644 --- a/docs/components/modules/ROOT/pages/jetty-component.adoc +++ b/docs/components/modules/ROOT/pages/jetty-component.adoc @@ -313,6 +313,39 @@ Spring DSL based configuration of endpoint https://127.0.0.1/mail/?sslContextParameters=#sslContextParameters"/> +[[HTTP-Blueprintbasedconfigurationofendpoint]] +Blueprint based configuration of endpoint + +Global configuration of sslContextParameters in a dedicated Blueprint XML file + +[source,xml] + +http://www.osgi.org/xmlns/blueprint/v1.0.0; + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; + xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd;> + + http://camel.apache.org/schema/blueprint;> + + + + + + + + + +Use of the global configuration in other Blueprint XML files with route definitions + +[source,xml] + +... + + + http://camel.apache.org/schema/blueprint;> + + https://0.0.0.0/path?sslContextParameters=#sslContextParameters"/> +... + [[Jetty-ConfiguringJettyDirectly]] Configuring Jetty Directly @@ -566,6 +599,71 @@ from("jetty:http://0.0.0.0:9080/myservice?handlers=securityHandler;) If you need more handlers, set the `handlers` option equal to a comma-separated list of bean IDs. +Blueprint based definition of basic authentication (based on Jetty 9): + +[source,xml] + +http://www.osgi.org/xmlns/blueprint/v1.0.0; + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; + xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd; + xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0;> + + + + + + + rolename1 + + + + + + + + + + + + + + + + + + + + + + + + + + + http://camel.apache.org/schema/blueprint;> + + + http://0.0.0.0/path?handlers=securityHandler"/> +... + + +The roles.properties files contains + +[source,text] + +username1=password1,rolename1 +username2=password2,rolename1 + + +This file is located in the etc folder and will be reloaded when changed. The endpoint + +[source,text] + +http://0.0.0.0/path + + +is now secured with basic authentication, only username1 with password1 and username2 with password2 are able to access the endpoint. + == How to return a custom HTTP 500 reply message You may want to return a custom reply message when something goes wrong,
[camel-quarkus] branch quarkus-master updated (c416c5e -> 7e0ca75)
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a change to branch quarkus-master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git. from c416c5e Set quarkus.version to 999-SNAPSHOT add c1f4053 Bump to Camel Quarkus 1.0.0-M6 add fcb9d4b Merge pull request #1073 from apache/camel-quarkus-1.0.0-M6 new 7e0ca75 Merge pull request #1075 from apache/master The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: docs/site.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
[GitHub] [camel-quarkus] oscerd merged pull request #1075: Automatic sync branch master to quarkus-master
oscerd merged pull request #1075: Automatic sync branch master to quarkus-master URL: https://github.com/apache/camel-quarkus/pull/1075 This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services
[camel-quarkus] 01/01: Merge pull request #1075 from apache/master
This is an automated email from the ASF dual-hosted git repository. acosentino pushed a commit to branch quarkus-master in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git commit 7e0ca75c3e4c0dcf1aa5841912c142b0c678d89d Merge: c416c5e fcb9d4b Author: Andrea Cosentino AuthorDate: Mon Apr 13 09:13:07 2020 +0200 Merge pull request #1075 from apache/master Automatic sync branch master to quarkus-master docs/site.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
[GitHub] [camel-quarkus] lburgazzoli commented on issue #1076: Fix #984 introduce the CamelContextCustomizerBuildItem
lburgazzoli commented on issue #1076: Fix #984 introduce the CamelContextCustomizerBuildItem URL: https://github.com/apache/camel-quarkus/pull/1076#issuecomment-612776639 Added some comment, in addition it would be nice to have some tests This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services