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 2020/10/28 07:56:37 UTC

[camel-kafka-connector-examples] branch fix-exec-ex created (now 42e56a7)

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

acosentino pushed a change to branch fix-exec-ex
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector-examples.git.


      at 42e56a7  Exec Example Simple Producer: Updated README

This branch includes the following new commits:

     new d64a66a  Exec Simple Producer: Added license and formatting
     new 42e56a7  Exec Example Simple Producer: Updated README

The 2 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-kafka-connector-examples] 02/02: Exec Example Simple Producer: Updated README

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch fix-exec-ex
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector-examples.git

commit 42e56a7149307f5699e75e01495dd1f9913419af
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 28 08:55:46 2020 +0100

    Exec Example Simple Producer: Updated README
---
 exec/exec-sink/camel-kafka-exec-simple-producer/README.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/exec/exec-sink/camel-kafka-exec-simple-producer/README.md b/exec/exec-sink/camel-kafka-exec-simple-producer/README.md
index 4a4622d..35b00b9 100644
--- a/exec/exec-sink/camel-kafka-exec-simple-producer/README.md
+++ b/exec/exec-sink/camel-kafka-exec-simple-producer/README.md
@@ -1,7 +1,5 @@
-## Infinispan Kafka Producer
-
-Related to https://github.com/oscerd/infinispan-kafka-demo
+## Camel Simple Exec Producer
 
 To run the producer:
 
-mvn clean compile exec:exec
+mvn compile exec:exec -Dkafka.topic.name=mytopic -Dkafka.key=1 -Dcamel.body="FileName" -Dcamel.header.detail="detail1"


[camel-kafka-connector-examples] 01/02: Exec Simple Producer: Added license and formatting

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch fix-exec-ex
in repository https://gitbox.apache.org/repos/asf/camel-kafka-connector-examples.git

commit d64a66a507d5d201d6e5f9577c49d0818b5b4cd5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Oct 28 08:54:42 2020 +0100

    Exec Simple Producer: Added license and formatting
---
 .../camel-kafka-exec-simple-producer/pom.xml       | 35 +++++++++++-----------
 .../camel/kafkaconnector/SimpleProducer.java       | 16 ++++++++++
 2 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml b/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml
index 9f64f04..0cb7503 100644
--- a/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml
+++ b/exec/exec-sink/camel-kafka-exec-simple-producer/pom.xml
@@ -1,12 +1,13 @@
 <?xml version="1.0"?>
 <project
 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
-	xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+	xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 	<modelVersion>4.0.0</modelVersion>
-        <groupId>org.apache.camel.kafkaconnector</groupId>
+	<groupId>org.apache.camel.kafkaconnector</groupId>
 	<artifactId>camel-kafka-exec-simple-producer</artifactId>
 	<name>Camel Kafka Exec Simple Producer</name>
-        <version>0.0.1-SNAPSHOT</version>
+	<version>0.0.1-SNAPSHOT</version>
 
 	<dependencies>
 		<dependency>
@@ -24,11 +25,11 @@
 			<artifactId>jackson-databind</artifactId>
 			<version>2.11.3</version>
 		</dependency>
-                <dependency>
-                        <groupId>log4j</groupId>
-                        <artifactId>log4j</artifactId>
-                        <version>1.2.17</version>
-                </dependency>
+		<dependency>
+			<groupId>log4j</groupId>
+			<artifactId>log4j</artifactId>
+			<version>1.2.17</version>
+		</dependency>
 	</dependencies>
 
 	<properties>
@@ -60,15 +61,15 @@
 					</arguments>
 				</configuration>
 			</plugin>
-				<plugin>
-					<groupId>org.apache.maven.plugins</groupId>
-					<artifactId>maven-compiler-plugin</artifactId>
-					<version>3.2</version>
-					<configuration>
-						<source>1.8</source>
-						<target>1.8</target>
-					</configuration>
-				</plugin>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<version>3.2</version>
+				<configuration>
+					<source>1.8</source>
+					<target>1.8</target>
+				</configuration>
+			</plugin>
 		</plugins>
 	</build>
 
diff --git a/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java b/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java
index dfc156e..25e19af 100644
--- a/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java
+++ b/exec/exec-sink/camel-kafka-exec-simple-producer/src/main/java/org/apache/camel/kafkaconnector/SimpleProducer.java
@@ -1,3 +1,19 @@
+/*
+ * 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.kafkaconnector;
 
 import java.util.Properties;