forked from wildfly-extras/wildfly-camel
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[resolves wildfly-extras#732] Add support for camel-kafka
- Loading branch information
Thomas Diesler
committed
Jul 7, 2015
1 parent
2604a2d
commit 33c050e
Showing
21 changed files
with
175 additions
and
51 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
itests/standalone/basic/src/main/java/org/wildfly/camel/test/kafka/KafkaIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* #%L | ||
* Wildfly Camel :: Testsuite | ||
* %% | ||
* Copyright (C) 2013 - 2014 RedHat | ||
* %% | ||
* Licensed 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. | ||
* #L% | ||
*/ | ||
|
||
package org.wildfly.camel.test.kafka; | ||
|
||
import org.apache.camel.CamelContext; | ||
import org.apache.camel.Endpoint; | ||
import org.apache.camel.impl.DefaultCamelContext; | ||
import org.jboss.arquillian.container.test.api.Deployment; | ||
import org.jboss.arquillian.junit.Arquillian; | ||
import org.jboss.shrinkwrap.api.ShrinkWrap; | ||
import org.jboss.shrinkwrap.api.spec.JavaArchive; | ||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
@RunWith(Arquillian.class) | ||
public class KafkaIntegrationTest { | ||
|
||
@Deployment | ||
public static JavaArchive deployment() { | ||
final JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "kafka-integration-tests"); | ||
return archive; | ||
} | ||
|
||
@Test | ||
public void testKafkaEndpoint() throws Exception { | ||
CamelContext ctx = new DefaultCamelContext(); | ||
Endpoint endpoint = ctx.getEndpoint("kafka:localhost:9092?topic=test&zookeeperHost=localhost&zookeeperPort=2181&groupId=group1"); | ||
Assert.assertNotNull(endpoint); | ||
Assert.assertEquals(endpoint.getClass().getName(), "org.apache.camel.component.kafka.KafkaEndpoint"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
...rated/wildfly/modules/system/layers/fuse/org/apache/camel/component/kafka/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module xmlns="urn:jboss:module:1.1" name="org.apache.camel.component.kafka"> | ||
<resources> | ||
<resource-root path="camel-kafka-2.15.1.redhat-621012.jar" /> | ||
</resources> | ||
<dependencies> | ||
<module name="javax.api" /> | ||
<module name="org.slf4j" /> | ||
<module name="javax.xml.bind.api" /> | ||
<module name="org.apache.camel.core" /> | ||
<module name="org.apache.kafka" /> | ||
<module name="org.scala.lang" /> | ||
</dependencies> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...etc/generated/wildfly/modules/system/layers/fuse/org/apache/kafka/clients/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module xmlns="urn:jboss:module:1.1" name="org.apache.kafka.clients"> | ||
<resources> | ||
<resource-root path="kafka-clients-0.8.2.0.jar" /> | ||
<resource-root path="lz4-1.2.0.jar" /> | ||
<resource-root path="snappy-java-1.1.1.6.jar" /> | ||
</resources> | ||
<dependencies> | ||
<module name="org.osgi.core" /> | ||
<module name="org.slf4j" /> | ||
</dependencies> | ||
</module> |
16 changes: 16 additions & 0 deletions
16
modules/etc/generated/wildfly/modules/system/layers/fuse/org/apache/kafka/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module xmlns="urn:jboss:module:1.1" name="org.apache.kafka"> | ||
<resources> | ||
<resource-root path="jopt-simple-3.2.jar" /> | ||
<resource-root path="kafka_2.10-0.8.2.0.jar" /> | ||
<resource-root path="metrics-core-2.2.0.jar" /> | ||
<resource-root path="zkclient-0.3.jar" /> | ||
</resources> | ||
<dependencies> | ||
<module name="org.scala.lang" /> | ||
<module name="org.apache.kafka.clients" /> | ||
<module name="org.apache.log4j" /> | ||
<module name="org.apache.zookeeper" /> | ||
<module name="org.slf4j" /> | ||
</dependencies> | ||
</module> |
10 changes: 10 additions & 0 deletions
10
...les/etc/generated/wildfly/modules/system/layers/fuse/org/apache/zookeeper/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module xmlns="urn:jboss:module:1.1" name="org.apache.zookeeper"> | ||
<resources> | ||
<resource-root path="zookeeper-3.4.6.jar" /> | ||
</resources> | ||
<dependencies> | ||
<module name="org.jboss.netty" /> | ||
<module name="org.slf4j" /> | ||
</dependencies> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 0 additions & 10 deletions
10
...enerated/wildfly/modules/system/layers/fuse/org/scala-lang/scala-compiler/main/module.xml
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
...generated/wildfly/modules/system/layers/fuse/org/scala-lang/scala-library/main/module.xml
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...generated/wildfly/modules/system/layers/fuse/org/scala-lang/scala-reflect/main/module.xml
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
...es/etc/generated/wildfly/modules/system/layers/fuse/org/scala-lang/scalap/main/module.xml
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
modules/etc/generated/wildfly/modules/system/layers/fuse/org/scala/lang/main/module.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<module xmlns="urn:jboss:module:1.1" name="org.scala.lang"> | ||
<resources> | ||
<resource-root path="scala-compiler-2.10.0.jar" /> | ||
<resource-root path="scala-library-2.10.4.jar" /> | ||
<resource-root path="scala-reflect-2.10.0.jar" /> | ||
<resource-root path="scalap-2.10.0.jar" /> | ||
</resources> | ||
<dependencies /> | ||
</module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters