[BUILD-STABLE]: Job 'Karaf/karaf-runtime-jdk11/master [master] [21]'
BUILD-STABLE: Job 'Karaf/karaf-runtime-jdk11/master [master] [21]': Is back to normal.
[BUILD-FAILURE]: Job 'Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [18]'
BUILD-FAILURE: Job 'Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [18]': Check console output at "https://ci-builds.apache.org/job/Karaf/job/karaf-runtime-jdk11/job/karaf-4.2.x/18/";>Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [18]"
[BUILD-FAILURE]: Job 'Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [17]'
BUILD-FAILURE: Job 'Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [17]': Check console output at "https://ci-builds.apache.org/job/Karaf/job/karaf-runtime-jdk11/job/karaf-4.2.x/17/";>Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [17]"
[GitHub] [karaf-cave] jbonofre merged pull request #39: [KARAF-6710] Upgrade to Apache pom parent 23
jbonofre merged pull request #39: URL: https://github.com/apache/karaf-cave/pull/39 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
[karaf-cave] branch master updated: [KARAF-6710] Upgrade to Apache pom parent 23
This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/karaf-cave.git The following commit(s) were added to refs/heads/master by this push: new 6fa2894 [KARAF-6710] Upgrade to Apache pom parent 23 new 92165ea Merge pull request #39 from fpapon/KARAF-6710 6fa2894 is described below commit 6fa2894114abfbd52c3c72201996b5f5b9ec84b9 Author: Francois Papon AuthorDate: Thu May 7 06:24:50 2020 +0200 [KARAF-6710] Upgrade to Apache pom parent 23 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8feba64..8eecd5c 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ org.apache apache -21 +23
[karaf] branch karaf-4.2.x updated: [KARAF-6844] Upgrade to Camel 3.5.0
This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch karaf-4.2.x in repository https://gitbox.apache.org/repos/asf/karaf.git The following commit(s) were added to refs/heads/karaf-4.2.x by this push: new 5df7821 [KARAF-6844] Upgrade to Camel 3.5.0 5df7821 is described below commit 5df78212c6787bcc0788ffc2dd362f7c02c8160b Author: jbonofre AuthorDate: Sat Sep 5 18:15:42 2020 +0200 [KARAF-6844] Upgrade to Camel 3.5.0 (cherry picked from commit 474b2cda69984ece9c456789357fc650fdb139e2) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index eb4a580..625cbfd 100644 --- a/pom.xml +++ b/pom.xml @@ -146,7 +146,7 @@ 8.0.1 1.3.1 3.1.6 -3.4.3 +3.5.0 3.2.9_1 3.3.5 2.10.5
[karaf] branch master updated: [KARAF-6844] Upgrade to Camel 3.5.0
This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/karaf.git The following commit(s) were added to refs/heads/master by this push: new 474b2cd [KARAF-6844] Upgrade to Camel 3.5.0 new bc7842b Merge pull request #1186 from jbonofre/KARAF-6844 474b2cd is described below commit 474b2cda69984ece9c456789357fc650fdb139e2 Author: jbonofre AuthorDate: Sat Sep 5 18:15:42 2020 +0200 [KARAF-6844] Upgrade to Camel 3.5.0 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 9d9a4a1..9e36986 100644 --- a/pom.xml +++ b/pom.xml @@ -147,7 +147,7 @@ 1.3.1 3.1.6 1.66 -3.4.3 +3.5.0 3.2.9_1 3.3.5 2.10.5
[GitHub] [karaf] jbonofre merged pull request #1186: [KARAF-6844] Upgrade to Camel 3.5.0
jbonofre merged pull request #1186: URL: https://github.com/apache/karaf/pull/1186 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
[karaf] branch karaf-4.2.x updated: Upgrade to Apache Camel 3.4.3 and add camel core example
This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch karaf-4.2.x in repository https://gitbox.apache.org/repos/asf/karaf.git The following commit(s) were added to refs/heads/karaf-4.2.x by this push: new ce01dd1 Upgrade to Apache Camel 3.4.3 and add camel core example ce01dd1 is described below commit ce01dd1d3880e7b3b7303808276194fc5c2e7735 Author: jbonofre AuthorDate: Fri Aug 28 21:59:33 2020 +0200 Upgrade to Apache Camel 3.4.3 and add camel core example --- examples/karaf-camel-example/README.md | 6 +- .../main/resources/OSGI-INF/blueprint/route.xml| 16 ++-- .../src/main/feature/feature.xml | 20 ++-- .../karaf-camel-example-java/pom.xml | 12 ++- .../karaf/examples/camel/java/CamelComponent.java | 102 + .../camel/java/ExampleCamelRouteBuilder.java | 66 - .../main/resources/OSGI-INF/blueprint/route.xml| 27 -- examples/karaf-profile-example/pom.xml | 4 + pom.xml| 2 +- 9 files changed, 138 insertions(+), 117 deletions(-) diff --git a/examples/karaf-camel-example/README.md b/examples/karaf-camel-example/README.md index 666c4f9..aae5691 100644 --- a/examples/karaf-camel-example/README.md +++ b/examples/karaf-camel-example/README.md @@ -24,11 +24,11 @@ This example shows how to use Apache Camel in Karaf. Apache Camel is a integrati Apache Camel supports several DSL. This example shows how to use the Camel Java DSL and the Camel Blueprint DSL. -It creates several Camel routes, exposing a HTTP endpoint and using a Content Based Router EIP (Enterprise Integration Pattern). +It creates several Camel routes, exposing HTTP endpoint and using a Content Based Router EIP (Enterprise Integration Pattern). ## Artifacts -* **karaf-camel-example-java** is a bundle containing routes described using the Camel Java DSL. +* **karaf-camel-example-java** is a bundle containing routes described using the Camel Java DSL loaded by SCR. * **karaf-camel-example-blueprint** is just a wrapper containing routes described using Blueprint. Karaf supports deployment of this DSL directly (in the deploy folder for instance) or packaged as a bundle. * **karaf-camel-example-features** provides a Karaf features repository used for the deployment. @@ -60,7 +60,7 @@ karaf@root()> feature:install karaf-camel-example-blueprint ## Usage -Once you have install a Camel feature, the main route is started and bind a HTTP endpoint on `http://localhost:9090/example`. +Once you have installed a Camel feature, the main route started and bind HTTP endpoint on `http://localhost:9090/example`. We can test payloads testing different paths of the content based router. diff --git a/examples/karaf-camel-example/karaf-camel-example-blueprint/src/main/resources/OSGI-INF/blueprint/route.xml b/examples/karaf-camel-example/karaf-camel-example-blueprint/src/main/resources/OSGI-INF/blueprint/route.xml index 00fa7bb..093bcd6 100644 --- a/examples/karaf-camel-example/karaf-camel-example-blueprint/src/main/resources/OSGI-INF/blueprint/route.xml +++ b/examples/karaf-camel-example/karaf-camel-example-blueprint/src/main/resources/OSGI-INF/blueprint/route.xml @@ -26,7 +26,7 @@ ${headers.CamelHttpMethod} == 'POST' - + $.notification.type @@ -34,33 +34,33 @@ ${header.type} == 'email' -200 +200 ${header.type} == 'http' -200 +200 { "status": "reject", "type": "unknown" } -400 +400 { "error": "only POST is accepted" } -500 +500 -$.notification.to -Notification +$.notification.to +Notification $.notification.message { "status": "email sent", "to": "${header.to}", "subject": "${header.subject}" } @@ -68,7 +68,7 @@ -$.notification.service +$.notification.service { "status": "http requested", "service": "${header.service}" }
[GitHub] [karaf] jbonofre opened a new pull request #1186: [KARAF-6844] Upgrade to Camel 3.5.0
jbonofre opened a new pull request #1186: URL: https://github.com/apache/karaf/pull/1186 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
[BUILD-FAILURE]: Job 'Karaf/karaf-runtime-jdk11/master [master] [20]'
BUILD-FAILURE: Job 'Karaf/karaf-runtime-jdk11/master [master] [20]': Check console output at "https://ci-builds.apache.org/job/Karaf/job/karaf-runtime-jdk11/job/master/20/";>Karaf/karaf-runtime-jdk11/master [master] [20]"
[BUILD-FAILURE]: Job 'Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [16]'
BUILD-FAILURE: Job 'Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [16]': Check console output at "https://ci-builds.apache.org/job/Karaf/job/karaf-runtime-jdk11/job/karaf-4.2.x/16/";>Karaf/karaf-runtime-jdk11/karaf-4.2.x [karaf-4.2.x] [16]"
[karaf] branch karaf-4.2.x updated: [KARAF-6821] Document jdbc:ds-factories command
This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch karaf-4.2.x in repository https://gitbox.apache.org/repos/asf/karaf.git The following commit(s) were added to refs/heads/karaf-4.2.x by this push: new a0931de [KARAF-6821] Document jdbc:ds-factories command a0931de is described below commit a0931de8d1365e1cfaa40cd0de614a34e73886ea Author: jbonofre AuthorDate: Sat Sep 5 10:58:44 2020 +0200 [KARAF-6821] Document jdbc:ds-factories command (cherry picked from commit a31bd27a2baf9fff5dbbab9b5cf34ff495dad7c2) --- manual/src/main/asciidoc/user-guide/jdbc.adoc | 52 +++ 1 file changed, 52 insertions(+) diff --git a/manual/src/main/asciidoc/user-guide/jdbc.adoc b/manual/src/main/asciidoc/user-guide/jdbc.adoc index 873a632..4fbd142 100644 --- a/manual/src/main/asciidoc/user-guide/jdbc.adoc +++ b/manual/src/main/asciidoc/user-guide/jdbc.adoc @@ -42,6 +42,44 @@ This JDBC OSGi service can be manipulated programmatically (see the developer gu = Commands +== `jdbc:ds-factories` + +The `jdbc:ds-factories` command lists the available datasource factories, with the available driver. + +For instance, once you installed the `jdbc` feature, you can install `pax-jdbc-postgresql` feature, providing the PostgreSQL datasource factory: + + +karaf@root()> feature:install pax-jdbc-postgresql + + +Then, you can see the factory available with `jdbc:ds-factories`: + + +karaf@root()> jdbc:ds-factories +Name │ Class │ Version │ Registration bundle +───┼───┼─┼─── +PostgreSQL JDBC Driver │ org.postgresql.Driver │ 42.2.8 │ org.postgresql.jdbc42 [51] + + +You can see there the JDBC driver name and class that you can use in the `jdbc:ds-create` command. + +NB: don't forget to install the `pax-jdbc-*` features for the database you want to connect: + + +pax-jdbc-db2 +pax-jdbc-teradata +pax-jdbc-derby +pax-jdbc-derbyclient +pax-jdbc-h2 +pax-jdbc-hsqldb +pax-jdbc-mariadb +pax-jdbc-oracle +pax-jdbc-postgresql +pax-jdbc-sqlite +pax-jdbc-mssql +pax-jdbc-jtds + + == `jdbc:ds-create` The `jdbc:ds-create` command automatically creates a datasource definition file by leveraging pax-jdbc. @@ -51,6 +89,8 @@ The `jdbc:ds-create` command requires either: * the `--driverName` containing the JDBC driver name * or the `--driverClass` containing the JDBC driver class name +Driver name and driver class can be found with `jdbc:ds-factories` command. + The `jdbc:ds-create` accepts a set of options and the name argument: @@ -96,6 +136,18 @@ karaf@root()> jdbc:ds-create -dn derby -url "jdbc:derby:test;create=true" test We can see that this command created a configuration PID containing the datasource properties. +Another example using PostgreSQL driver class name (you can find with `jdbc:ds-factories` command): + + +karaf@root()> jdbc:ds-create -dc org.postgresql.Driver -url "jdbc:postgresql://localhost:5432/test" --username user --password passwd test + + +or using datasource factory name (also provided by `jdbc:ds-factories` command): + + +karaf@root()> jdbc:ds-create -dn "PostgreSQL JDBC Driver" -url "jdbc:postgresql://localhost:5432/test" --username user --password passwd test + + = `jdbc:ds-delete` The `jdbc:ds-delete` command deletes a datasource.
[karaf] branch master updated: [KARAF-6821] Document jdbc:ds-factories command
This is an automated email from the ASF dual-hosted git repository. jbonofre pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/karaf.git The following commit(s) were added to refs/heads/master by this push: new a31bd27 [KARAF-6821] Document jdbc:ds-factories command a31bd27 is described below commit a31bd27a2baf9fff5dbbab9b5cf34ff495dad7c2 Author: jbonofre AuthorDate: Sat Sep 5 10:58:44 2020 +0200 [KARAF-6821] Document jdbc:ds-factories command --- manual/src/main/asciidoc/user-guide/jdbc.adoc | 52 +++ 1 file changed, 52 insertions(+) diff --git a/manual/src/main/asciidoc/user-guide/jdbc.adoc b/manual/src/main/asciidoc/user-guide/jdbc.adoc index 873a632..4fbd142 100644 --- a/manual/src/main/asciidoc/user-guide/jdbc.adoc +++ b/manual/src/main/asciidoc/user-guide/jdbc.adoc @@ -42,6 +42,44 @@ This JDBC OSGi service can be manipulated programmatically (see the developer gu = Commands +== `jdbc:ds-factories` + +The `jdbc:ds-factories` command lists the available datasource factories, with the available driver. + +For instance, once you installed the `jdbc` feature, you can install `pax-jdbc-postgresql` feature, providing the PostgreSQL datasource factory: + + +karaf@root()> feature:install pax-jdbc-postgresql + + +Then, you can see the factory available with `jdbc:ds-factories`: + + +karaf@root()> jdbc:ds-factories +Name │ Class │ Version │ Registration bundle +───┼───┼─┼─── +PostgreSQL JDBC Driver │ org.postgresql.Driver │ 42.2.8 │ org.postgresql.jdbc42 [51] + + +You can see there the JDBC driver name and class that you can use in the `jdbc:ds-create` command. + +NB: don't forget to install the `pax-jdbc-*` features for the database you want to connect: + + +pax-jdbc-db2 +pax-jdbc-teradata +pax-jdbc-derby +pax-jdbc-derbyclient +pax-jdbc-h2 +pax-jdbc-hsqldb +pax-jdbc-mariadb +pax-jdbc-oracle +pax-jdbc-postgresql +pax-jdbc-sqlite +pax-jdbc-mssql +pax-jdbc-jtds + + == `jdbc:ds-create` The `jdbc:ds-create` command automatically creates a datasource definition file by leveraging pax-jdbc. @@ -51,6 +89,8 @@ The `jdbc:ds-create` command requires either: * the `--driverName` containing the JDBC driver name * or the `--driverClass` containing the JDBC driver class name +Driver name and driver class can be found with `jdbc:ds-factories` command. + The `jdbc:ds-create` accepts a set of options and the name argument: @@ -96,6 +136,18 @@ karaf@root()> jdbc:ds-create -dn derby -url "jdbc:derby:test;create=true" test We can see that this command created a configuration PID containing the datasource properties. +Another example using PostgreSQL driver class name (you can find with `jdbc:ds-factories` command): + + +karaf@root()> jdbc:ds-create -dc org.postgresql.Driver -url "jdbc:postgresql://localhost:5432/test" --username user --password passwd test + + +or using datasource factory name (also provided by `jdbc:ds-factories` command): + + +karaf@root()> jdbc:ds-create -dn "PostgreSQL JDBC Driver" -url "jdbc:postgresql://localhost:5432/test" --username user --password passwd test + + = `jdbc:ds-delete` The `jdbc:ds-delete` command deletes a datasource.