You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/03/03 17:32:38 UTC

[camel-examples] branch master updated (a4a396a -> b740244)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/camel-examples.git.


    from a4a396a  CAMEL-16012: Remove prefix 08 (#42)
     new 0ba4328  CAMEL-16300 - added a google pubsub example
     new 05307ce  CAMEL-16300 - added a google pubsub example
     new 92eaeec  CAMEL-16300 - added a google pubsub example
     new b740244  CAMEL-16300 - added a google pubsub example - Regen

The 4 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:
 examples/README.adoc                               | 91 ----------------------
 .../README.adoc                                    | 11 ++-
 .../pom.xml                                        | 12 +--
 .../org/apache/camel/example/MyApplication.java    |  0
 .../org/apache/camel/example/MyRouteBuilder.java   | 17 ++--
 .../src/main/resources/application.properties      |  7 +-
 .../src/main/resources/logback.xml                 |  0
 .../org/apache/camel/example/MyBeanConfigurer.java |  8 +-
 examples/pom.xml                                   |  1 +
 9 files changed, 35 insertions(+), 112 deletions(-)
 copy examples/{main-endpointdsl => main-endpointdsl-google-pubsub}/README.adoc (69%)
 copy examples/{main-endpointdsl-aws2-s3-kafka => main-endpointdsl-google-pubsub}/pom.xml (90%)
 copy examples/{main-tiny => main-endpointdsl-google-pubsub}/src/main/java/org/apache/camel/example/MyApplication.java (100%)
 copy examples/{main-endpointdsl => main-endpointdsl-google-pubsub}/src/main/java/org/apache/camel/example/MyRouteBuilder.java (68%)
 copy examples/{main-endpointdsl => main-endpointdsl-google-pubsub}/src/main/resources/application.properties (88%)
 copy examples/{routetemplate => main-endpointdsl-google-pubsub}/src/main/resources/logback.xml (100%)


[camel-examples] 01/04: CAMEL-16300 - added a google pubsub example

Posted by ac...@apache.org.
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-examples.git

commit 0ba4328dff6a3ee539ad0a9fa472afd82d3a98ee
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 3 18:27:09 2021 +0100

    CAMEL-16300 - added a google pubsub example
---
 .../main-endpointdsl-google-pubsub/README.adoc     |  44 ++++++++
 examples/main-endpointdsl-google-pubsub/pom.xml    | 113 +++++++++++++++++++++
 .../org/apache/camel/example/MyApplication.java    |  38 +++++++
 .../org/apache/camel/example/MyRouteBuilder.java   |  37 +++++++
 .../src/main/resources/application.properties      |  39 +++++++
 .../src/main/resources/logback.xml                 |  30 ++++++
 6 files changed, 301 insertions(+)

diff --git a/examples/main-endpointdsl-google-pubsub/README.adoc b/examples/main-endpointdsl-google-pubsub/README.adoc
new file mode 100644
index 0000000..edb6817
--- /dev/null
+++ b/examples/main-endpointdsl-google-pubsub/README.adoc
@@ -0,0 +1,44 @@
+== Camel Example Google PubSub Endpoint DSL
+
+This example shows how to use the endpoint DSL in your Camel routes
+to define endpoints using type safe fluent builders, which are Java methods
+that are compiled.
+
+Notice how you can configure Camel in the `application.properties` file.
+
+=== Setting up the google pubsub topic
+
+- You'll need to
+ - Create a project and save the projectId
+ - Create a topic and save the name
+ - Create a subscription to that topic and save the subscription name
+
+- Update the application.properties accordingly
+
+=== Build
+
+First compile the example by executing:
+
+[source,sh]
+----
+$ mvn compile
+----
+
+=== How to run
+
+You can run this example using
+
+[source,sh]
+----
+$ mvn camel:run
+----
+
+=== Help and contributions
+
+If you hit any problem using Camel or have some feedback, then please
+https://camel.apache.org/support.html[let us know].
+
+We also love contributors, so
+https://camel.apache.org/contributing.html[get involved] :-)
+
+The Camel riders!
diff --git a/examples/main-endpointdsl-google-pubsub/pom.xml b/examples/main-endpointdsl-google-pubsub/pom.xml
new file mode 100644
index 0000000..5074d36
--- /dev/null
+++ b/examples/main-endpointdsl-google-pubsub/pom.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
+<project xmlns="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/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.camel.example</groupId>
+        <artifactId>examples</artifactId>
+        <version>3.9.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>camel-example-main-endpointdsl</artifactId>
+    <packaging>jar</packaging>
+    <name>Camel :: Example :: Main :: Endpoint DSL</name>
+    <description>An example for showing standalone Camel with Endpoint DSL</description>
+
+    <properties>
+        <category>Beginner</category>
+    </properties>
+
+    <dependencyManagement>
+        <dependencies>
+            <!-- Add Camel BOM -->
+            <dependency>
+                <groupId>org.apache.camel</groupId>
+                <artifactId>camel-bom</artifactId>
+                <version>${camel.version}</version>
+                <type>pom</type>
+                <scope>import</scope>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+
+    <dependencies>
+
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-main</artifactId>
+        </dependency>
+        <!-- we use the endpoint-dsl -->
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-endpointdsl</artifactId>
+        </dependency>
+        <!-- we use these 2 camel components in this example -->
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-google-pubsub</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-log</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.camel</groupId>
+            <artifactId>camel-timer</artifactId>
+        </dependency>
+
+        <!-- logging -->
+        <dependency>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-core</artifactId>
+            <version>${logback-version}</version>
+        </dependency>
+        <dependency>
+            <groupId>ch.qos.logback</groupId>
+            <artifactId>logback-classic</artifactId>
+            <version>${logback-version}</version>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <plugins>
+            <!-- to run the application -->
+            <plugin>
+                <groupId>org.apache.camel</groupId>
+                <artifactId>camel-maven-plugin</artifactId>
+                <version>${camel.version}</version>
+                <configuration>
+                    <mainClass>org.apache.camel.example.MyApplication</mainClass>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>exec-maven-plugin</artifactId>
+                <configuration>
+                    <mainClass>org.apache.camel.example.MyApplication</mainClass>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
diff --git a/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyApplication.java b/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyApplication.java
new file mode 100644
index 0000000..496b37d
--- /dev/null
+++ b/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyApplication.java
@@ -0,0 +1,38 @@
+/*
+ * 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.example;
+
+import org.apache.camel.main.Main;
+
+/**
+ * Main class that boot the Camel application
+ */
+public final class MyApplication {
+
+    private MyApplication() {
+    }
+
+    public static void main(String[] args) throws Exception {
+        // use Camels Main class
+        Main main = new Main();
+        // and add the routes (you can specify multiple classes)
+        main.configure().addRoutesBuilder(MyRouteBuilder.class);
+        // now keep the application running until the JVM is terminated (ctrl + c or sigterm)
+        main.run(args);
+    }
+
+}
diff --git a/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyRouteBuilder.java b/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyRouteBuilder.java
new file mode 100644
index 0000000..1b995a1
--- /dev/null
+++ b/examples/main-endpointdsl-google-pubsub/src/main/java/org/apache/camel/example/MyRouteBuilder.java
@@ -0,0 +1,37 @@
+/*
+ * 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.example;
+
+import org.apache.camel.builder.endpoint.EndpointRouteBuilder;
+
+/**
+ * To use the endpoint DSL then we must extend EndpointRouteBuilder instead of RouteBuilder
+ */
+public class MyRouteBuilder extends EndpointRouteBuilder {
+
+    @Override
+    public void configure() throws Exception {
+        // the endpoint-dsl allows to define endpoints in type safe fluent builders
+        // here we configure the time and bean endpoint
+
+        from(timer("tick").repeatCount(5)).setBody(constant("Test"))
+            .to(googlePubsub("{{pubsubProjectId}}:{{pubsubTopicName}}").serviceAccountKey("{{pubsubServiceAccount}}")).startupOrder(2);
+        
+        from(googlePubsub("{{pubsubProjectId}}:{{pubsubSubscriptionName}}").synchronousPull(true).serviceAccountKey("{{pubsubServiceAccount}}"))
+            .log("From Pubsub Subscription: ${body}").startupOrder(1);
+    }
+}
diff --git a/examples/main-endpointdsl-google-pubsub/src/main/resources/application.properties b/examples/main-endpointdsl-google-pubsub/src/main/resources/application.properties
new file mode 100644
index 0000000..e61284d
--- /dev/null
+++ b/examples/main-endpointdsl-google-pubsub/src/main/resources/application.properties
@@ -0,0 +1,39 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+
+# to configure camel main
+# here you can configure options on camel main (see MainConfigurationProperties class)
+camel.main.name = Camel-google-pubsub
+
+# enable tracing
+### camel.main.tracing = true
+
+# you can also configure camel context directly
+# camel.context.shutdown-strategy.shutdown-now-on-timeout = false
+
+# you can configure whether OS environment should override (=2 which is default) or as fallback (=1)
+### camel.component.properties.environment-variable-mode=1
+
+# properties used in the route
+myPeriod = 1000
+pubsubServiceAccount = <service_account>
+pubsubProjectId = <projectId>
+pubsubTopicName = <topicName>
+pubsubSubscriptionName = <SubscriptionName>
+
+
+
diff --git a/examples/main-endpointdsl-google-pubsub/src/main/resources/logback.xml b/examples/main-endpointdsl-google-pubsub/src/main/resources/logback.xml
new file mode 100644
index 0000000..a798d0b
--- /dev/null
+++ b/examples/main-endpointdsl-google-pubsub/src/main/resources/logback.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    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.
+
+-->
+<configuration>
+    <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
+        <encoder>
+            <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
+        </encoder>
+    </appender>
+
+    <root level="INFO">
+        <appender-ref ref="STDOUT" />
+    </root>
+</configuration>


[camel-examples] 02/04: CAMEL-16300 - added a google pubsub example

Posted by ac...@apache.org.
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-examples.git

commit 05307ce743dc95150b650483a225ab7ffaf609c3
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 3 18:27:54 2021 +0100

    CAMEL-16300 - added a google pubsub example
---
 examples/pom.xml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/examples/pom.xml b/examples/pom.xml
index bdef49e..8ed2435 100644
--- a/examples/pom.xml
+++ b/examples/pom.xml
@@ -130,6 +130,7 @@
         <module>main-endpointdsl-aws2</module>
         <module>main-endpointdsl-aws2-s3</module>
         <module>main-endpointdsl-aws2-s3-kafka</module>
+        <module>main-endpointdsl-google-pubsub</module>
         <module>main-health</module>
         <module>main-joor</module>
         <module>main-lambda</module>


[camel-examples] 04/04: CAMEL-16300 - added a google pubsub example - Regen

Posted by ac...@apache.org.
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-examples.git

commit b74024418f7baa633383760dd18b77e985c096f0
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 3 18:30:30 2021 +0100

    CAMEL-16300 - added a google pubsub example - Regen
---
 examples/README.adoc                               | 91 ----------------------
 .../org/apache/camel/example/MyBeanConfigurer.java |  8 +-
 2 files changed, 7 insertions(+), 92 deletions(-)

diff --git a/examples/README.adoc b/examples/README.adoc
index dcd0143..80bf606 100644
--- a/examples/README.adoc
+++ b/examples/README.adoc
@@ -11,98 +11,7 @@ View the individual example READMEs for details.
 == Examples
 
 // examples: START
-Number of Examples: 40 (0 deprecated)
 
-[width="100%",cols="4,2,4",options="header"]
-|===
-| Example | Category | Description
-
-| link:micrometer/README.adoc[Micrometer] (camel-example-micrometer) | Advanced | An example showing how to work with Camel, Spring Java Config and Micrometer monitoring
-
-| link:main/README.adoc[Main] (camel-example-main) | Beginner | An example for showing standalone Camel
-
-| link:main-endpointdsl/README.adoc[Main Endpointdsl] (camel-example-main-endpointdsl) | Beginner | An example for showing standalone Camel with Endpoint DSL
-
-| link:main-endpointdsl-aws2-s3/README.adoc[Main Endpointdsl Aws2 S3] (camel-example-main-endpointdsl-aws2-s3) | Beginner | An example for showing standalone Camel with Endpoint DSL and AWS2-S3
-
-| link:main-endpointdsl-aws2-s3-kafka/README.adoc[Main Endpointdsl Aws2 S3 Kafka] (camel-example-main-endpointdsl-aws2-s3-kafka) | Beginner | An example for showing standalone Camel with Endpoint DSL and AWS2-S3 and Kafka
-
-| link:main-health/README.adoc[Main Health] (camel-example-main-health) | Beginner | An example for showing standalone Camel with Health Checks
-
-| link:main-joor/README.adoc[Main Joor] (camel-example-main-joor) | Beginner | An example for showing standalone Camel with jOOR runtime Java compiled
-
-| link:main-lambda/README.adoc[Main Lambda] (camel-example-main-lambda) | Beginner | Camel routes lambda style
-
-| link:main-tiny/README.adoc[Main Tiny] (camel-example-main-tiny) | Beginner | An example for showing standalone Camel with as few JARs on classpath as possible
-
-| link:main-xml/README.adoc[Main Xml] (camel-example-main-xml) | Beginner | An example for showing standalone Camel using XML
-
-| link:oaipmh/README.adoc[OAIPMH example] (camel-example-oaipmh) | Beginner | An example with OAIPMH component
-
-| link:pojo-messaging/README.adoc[POJO Routing] (camel-example-pojo-messaging) | Beginner | An example showing how to produce and consume messages from Camel endpoints using annotated POJOs
-    
-
-| link:routeloader/README.adoc[Routeloader] (camel-example-routeloader) | Beginner | Example loading and compiling Java routes on startup
-
-| link:routetemplate/README.adoc[Routetemplate] (camel-example-routetemplate) | Beginner | How to use route templates (parameterized routes)
-
-| link:servlet-tomcat/README.adoc[Servlet Tomcat] (camel-example-servlet-tomcat) | Beginner | An example using Camel Servlet with Apache Tomcat
-
-| link:spring/README.adoc[Spring] (camel-example-spring) | Beginner | An example showing how to work with Camel and Spring
-
-| link:spring-javaconfig/README.adoc[Spring Java Config] (camel-example-spring-javaconfig) | Beginner | An example showing how to work with Camel and Spring Java Config
-
-| link:spring-xquery/README.adoc[Spring XQuery] (camel-example-spring-xquery) | Beginner | An example using Spring XML to transform a message using XQuery
-
-| link:main-endpointdsl-aws2/README[Main Endpointdsl Aws2] (camel-example-main-endpointdsl-aws2) | Cloud | An example for showing standalone Camel with multiple AWS2 components
-
-| link:mongodb/README.adoc[Mongodb] (camel-example-mongodb) | Database | An example that uses Camel MongoDB component
-
-| link:route-throttling/README.adoc[Route Throttling] (camel-example-route-throttling) | EIP | A client-server example using JMS transport where we on the server side can throttle the Camel
-        route dynamically based on the flow of messages
-    
-
-| link:widget-gadget-cdi/README.adoc[Widget Gadget CDI] (camel-example-widget-gadget-cdi) | EIP | The widget and gadget example from the EIP book
-
-| link:widget-gadget-java/README.adoc[Widget Gadget Java] (camel-example-widget-gadget-java) | EIP | The widget and gadget example from the EIP book
-
-| link:widget-gadget-xml/README.adoc[Widget Gadget XML] (camel-example-widget-gadget-xml) | EIP | The widget and gadget example from the EIP book
-
-| link:transformer-cdi/README.adoc[Transformer CDI] (camel-example-transformer-cdi) | Input/Output Type Contract | An example demonstrating declarative transformation along data type declaration using Java DSL and CDI
-    
-
-| link:transformer-demo/README.adoc[Transformer and Validator Spring XML] (camel-example-transformer-demo) | Input/Output Type Contract | An example demonstrating declarative transformation and validation along data type declaration using
-        Spring DSL
-    
-
-| link:management/README.adoc[Management] (camel-example-management) | Management and Monitoring | An example for showing Camel JMX management
-
-| link:splunk/README.adoc[Splunk] (camel-example-splunk) | Management and Monitoring | An example using Splunk
-
-| link:main-artemis/README.adoc[Main Artemis] (camel-example-main-artemis) | Messaging | An example for showing standalone Camel with ActiveMQ Artemis
-
-| link:netty-custom-correlation/README.adoc[Netty Custom Correlation] (camel-example-netty-custom-correlation) | Messaging | An example for showing Camel Netty with custom codec and correlation id
-
-| link:spring-pulsar/README.adoc[Spring Pulsar] (camel-example-spring-pulsar) | Messaging | An example using Spring XML to talk to the Pulsar server from different kind of client techniques
-
-| link:vertx-kafka/README.adoc[Vertx Kafka] (camel-example-vertx-kafka) | Messaging | An example for Vertx Kafka
-
-| link:reactive-executor-vertx/README.adoc[Reactive Executor Vertx] (camel-example-reactive-executor-vertx) | Reactive | An example for showing using VertX as reactive executor with standalone Camel
-
-| link:openapi-cdi/README.adoc[OpenApi CDI] (camel-example-openapi-cdi) | Rest | An example using REST DSL and OpenApi Java with CDI
-
-| link:swagger-cdi/README.adoc[Swagger CDI] (camel-example-swagger-cdi) | Rest | An example using REST DSL and Swagger Java with CDI
-
-| link:spring-security/README.adoc[Spring Security] (camel-example-spring-security) | Security | An example showing how to work with Camel and Spring Security
-
-| link:salesforce-consumer/README.adoc[Salesforce Consumer] (camel-example-salesforce-consumer) | Social | An example that uses Salesforce Rest Streaming API
-
-| link:telegram/README.adoc[Telegram] (camel-example-telegram) | Social | An example that uses Telegram API
-
-| link:twitter-websocket/README.adoc[Twitter Websocket] (camel-example-twitter-websocket) | Social | An example that pushes new tweets to a web page using web-socket
-
-| link:spring-ws/README.adoc[Spring WebService] (camel-example-spring-ws) | WebService | An example showing how to work with Camel and Spring Web Services
-|===
 // examples: END
 
 == Help and contributions
diff --git a/examples/main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java b/examples/main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java
index cb95d08..361530d 100644
--- a/examples/main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java
+++ b/examples/main-tiny/src/generated/java/org/apache/camel/example/MyBeanConfigurer.java
@@ -1,9 +1,15 @@
 /* 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.ExtendedPropertyConfigurerGetter;
 import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.example.MyBean;
 
 /**
  * Generated by camel build tools - do NOT edit this file!


[camel-examples] 03/04: CAMEL-16300 - added a google pubsub example

Posted by ac...@apache.org.
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-examples.git

commit 92eaeec4feef1258963c5c5875ec3035d547ef12
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 3 18:29:02 2021 +0100

    CAMEL-16300 - added a google pubsub example
---
 examples/main-endpointdsl-google-pubsub/pom.xml | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/examples/main-endpointdsl-google-pubsub/pom.xml b/examples/main-endpointdsl-google-pubsub/pom.xml
index 5074d36..ec825f8 100644
--- a/examples/main-endpointdsl-google-pubsub/pom.xml
+++ b/examples/main-endpointdsl-google-pubsub/pom.xml
@@ -28,10 +28,10 @@
         <version>3.9.0-SNAPSHOT</version>
     </parent>
 
-    <artifactId>camel-example-main-endpointdsl</artifactId>
+    <artifactId>camel-example-main-endpointdsl-google-pubsub</artifactId>
     <packaging>jar</packaging>
-    <name>Camel :: Example :: Main :: Endpoint DSL</name>
-    <description>An example for showing standalone Camel with Endpoint DSL</description>
+    <name>Camel :: Example :: Main :: Endpoint DSL :: Google Pubsub</name>
+    <description>An example for showing standalone Camel with Endpoint DSL and Google Pubsub component</description>
 
     <properties>
         <category>Beginner</category>
@@ -100,13 +100,6 @@
                     <mainClass>org.apache.camel.example.MyApplication</mainClass>
                 </configuration>
             </plugin>
-            <plugin>
-                <groupId>org.codehaus.mojo</groupId>
-                <artifactId>exec-maven-plugin</artifactId>
-                <configuration>
-                    <mainClass>org.apache.camel.example.MyApplication</mainClass>
-                </configuration>
-            </plugin>
         </plugins>
     </build>