You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pp...@apache.org on 2020/09/25 08:35:40 UTC

[camel-quarkus] branch master updated: Atom native support

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

ppalaga pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git


The following commit(s) were added to refs/heads/master by this push:
     new e72c430  Atom native support
e72c430 is described below

commit e72c43029285083da27a6626a0c84297a86fc494
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Sep 25 07:47:04 2020 +0100

    Atom native support
    
    Fixes #1560
---
 .../ROOT/pages/reference/extensions/atom.adoc      |  8 +--
 .../ROOT/partials/reference/components/atom.adoc   |  6 +-
 .../quarkus/component/atom/it/AtomResource.java    | 51 ----------------
 extensions-jvm/pom.xml                             |  1 -
 .../atom/deployment/pom.xml                        |  0
 .../component/atom/deployment/AtomProcessor.java   | 20 ++-----
 {extensions-jvm => extensions}/atom/pom.xml        |  1 -
 .../atom/runtime/pom.xml                           | 10 ++++
 .../atom/graal/DataSourceUtilsSubstitutions.java   | 41 +++++++++++++
 .../main/resources/META-INF/quarkus-extension.yaml |  3 +-
 extensions/pom.xml                                 |  1 +
 .../atom}/pom.xml                                  | 66 +++++++++++++++-----
 .../quarkus/component/atom/it/AtomResource.java    | 70 ++++++++++++++++++++++
 .../src/main/resources/META-INF/resources/atom.xml | 54 +++++++++++++++++
 .../camel/quarkus/component/atom/it/AtomIT.java    | 16 +----
 .../camel/quarkus/component/atom/it/AtomTest.java  | 60 +++++++++++++++++++
 integration-tests/pom.xml                          |  1 +
 poms/bom/pom.xml                                   |  4 ++
 tooling/scripts/test-categories.yaml               |  1 +
 19 files changed, 311 insertions(+), 103 deletions(-)

diff --git a/docs/modules/ROOT/pages/reference/extensions/atom.adoc b/docs/modules/ROOT/pages/reference/extensions/atom.adoc
index c48b7db..60e5bf3 100644
--- a/docs/modules/ROOT/pages/reference/extensions/atom.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/atom.adoc
@@ -2,15 +2,15 @@
 // This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
 = Atom
 :cq-artifact-id: camel-quarkus-atom
-:cq-native-supported: false
-:cq-status: Preview
+:cq-native-supported: true
+:cq-status: Stable
 :cq-description: Poll Atom RSS feeds.
 :cq-deprecated: false
 :cq-jvm-since: 1.1.0
-:cq-native-since: n/a
+:cq-native-since: 1.2.0
 
 [.badges]
-[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native##[.badge-unsupported]##unsupported##
+[.badge-key]##JVM since##[.badge-supported]##1.1.0## [.badge-key]##Native since##[.badge-supported]##1.2.0##
 
 Poll Atom RSS feeds.
 
diff --git a/docs/modules/ROOT/partials/reference/components/atom.adoc b/docs/modules/ROOT/partials/reference/components/atom.adoc
index 29f4d23..4299ec8 100644
--- a/docs/modules/ROOT/partials/reference/components/atom.adoc
+++ b/docs/modules/ROOT/partials/reference/components/atom.adoc
@@ -2,11 +2,11 @@
 // This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
 :cq-artifact-id: camel-quarkus-atom
 :cq-artifact-id-base: atom
-:cq-native-supported: false
-:cq-status: Preview
+:cq-native-supported: true
+:cq-status: Stable
 :cq-deprecated: false
 :cq-jvm-since: 1.1.0
-:cq-native-since: n/a
+:cq-native-since: 1.2.0
 :cq-camel-part-name: atom
 :cq-camel-part-title: Atom
 :cq-camel-part-description: Poll Atom RSS feeds.
diff --git a/extensions-jvm/atom/integration-test/src/main/java/org/apache/camel/quarkus/component/atom/it/AtomResource.java b/extensions-jvm/atom/integration-test/src/main/java/org/apache/camel/quarkus/component/atom/it/AtomResource.java
deleted file mode 100644
index 03e70f7..0000000
--- a/extensions-jvm/atom/integration-test/src/main/java/org/apache/camel/quarkus/component/atom/it/AtomResource.java
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * 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.component.atom.it;
-
-import javax.enterprise.context.ApplicationScoped;
-import javax.inject.Inject;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-import javax.ws.rs.core.Response;
-
-import org.apache.camel.CamelContext;
-import org.jboss.logging.Logger;
-
-@Path("/atom")
-@ApplicationScoped
-public class AtomResource {
-
-    private static final Logger LOG = Logger.getLogger(AtomResource.class);
-
-    private static final String COMPONENT_ATOM = "atom";
-    @Inject
-    CamelContext context;
-
-    @Path("/load/component/atom")
-    @GET
-    @Produces(MediaType.TEXT_PLAIN)
-    public Response loadComponentAtom() throws Exception {
-        /* This is an autogenerated test */
-        if (context.getComponent(COMPONENT_ATOM) != null) {
-            return Response.ok().build();
-        }
-        LOG.warnf("Could not load [%s] from the Camel context", COMPONENT_ATOM);
-        return Response.status(500, COMPONENT_ATOM + " could not be loaded from the Camel context").build();
-    }
-}
diff --git a/extensions-jvm/pom.xml b/extensions-jvm/pom.xml
index 290485f..62f666e 100644
--- a/extensions-jvm/pom.xml
+++ b/extensions-jvm/pom.xml
@@ -38,7 +38,6 @@
         <module>asn1</module>
         <module>asterisk</module>
         <module>atmos</module>
-        <module>atom</module>
         <module>atomix</module>
         <module>avro-rpc</module>
         <module>aws2-kinesis</module>
diff --git a/extensions-jvm/atom/deployment/pom.xml b/extensions/atom/deployment/pom.xml
similarity index 100%
rename from extensions-jvm/atom/deployment/pom.xml
rename to extensions/atom/deployment/pom.xml
diff --git a/extensions-jvm/atom/deployment/src/main/java/org/apache/camel/quarkus/component/atom/deployment/AtomProcessor.java b/extensions/atom/deployment/src/main/java/org/apache/camel/quarkus/component/atom/deployment/AtomProcessor.java
similarity index 62%
rename from extensions-jvm/atom/deployment/src/main/java/org/apache/camel/quarkus/component/atom/deployment/AtomProcessor.java
rename to extensions/atom/deployment/src/main/java/org/apache/camel/quarkus/component/atom/deployment/AtomProcessor.java
index f0ff2b0..2490dbe 100644
--- a/extensions-jvm/atom/deployment/src/main/java/org/apache/camel/quarkus/component/atom/deployment/AtomProcessor.java
+++ b/extensions/atom/deployment/src/main/java/org/apache/camel/quarkus/component/atom/deployment/AtomProcessor.java
@@ -17,16 +17,13 @@
 package org.apache.camel.quarkus.component.atom.deployment;
 
 import io.quarkus.deployment.annotations.BuildStep;
-import io.quarkus.deployment.annotations.ExecutionTime;
-import io.quarkus.deployment.annotations.Record;
 import io.quarkus.deployment.builditem.FeatureBuildItem;
-import io.quarkus.deployment.pkg.steps.NativeBuild;
-import org.apache.camel.quarkus.core.JvmOnlyRecorder;
-import org.jboss.logging.Logger;
+import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
+import org.apache.abdera.parser.stax.FOMFactory;
+import org.apache.abdera.parser.stax.FOMParser;
 
 class AtomProcessor {
 
-    private static final Logger LOG = Logger.getLogger(AtomProcessor.class);
     private static final String FEATURE = "camel-atom";
 
     @BuildStep
@@ -34,13 +31,8 @@ class AtomProcessor {
         return new FeatureBuildItem(FEATURE);
     }
 
-    /**
-     * Remove this once this extension starts supporting the native mode.
-     */
-    @BuildStep(onlyIf = NativeBuild.class)
-    @Record(value = ExecutionTime.RUNTIME_INIT)
-    void warnJvmInNative(JvmOnlyRecorder recorder) {
-        JvmOnlyRecorder.warnJvmInNative(LOG, FEATURE); // warn at build time
-        recorder.warnJvmInNative(FEATURE); // warn at runtime
+    @BuildStep
+    ReflectiveClassBuildItem registerForReflection() {
+        return new ReflectiveClassBuildItem(false, false, FOMParser.class, FOMFactory.class);
     }
 }
diff --git a/extensions-jvm/atom/pom.xml b/extensions/atom/pom.xml
similarity index 97%
rename from extensions-jvm/atom/pom.xml
rename to extensions/atom/pom.xml
index 932f44f..6a2066f 100644
--- a/extensions-jvm/atom/pom.xml
+++ b/extensions/atom/pom.xml
@@ -35,6 +35,5 @@
     <modules>
         <module>deployment</module>
         <module>runtime</module>
-        <module>integration-test</module>
     </modules>
 </project>
diff --git a/extensions-jvm/atom/runtime/pom.xml b/extensions/atom/runtime/pom.xml
similarity index 90%
rename from extensions-jvm/atom/runtime/pom.xml
rename to extensions/atom/runtime/pom.xml
index 72b9b8a..a86f7b7 100644
--- a/extensions-jvm/atom/runtime/pom.xml
+++ b/extensions/atom/runtime/pom.xml
@@ -34,6 +34,7 @@
 
     <properties>
         <camel.quarkus.jvmSince>1.1.0</camel.quarkus.jvmSince>
+        <camel.quarkus.nativeSince>1.2.0</camel.quarkus.nativeSince>
     </properties>
 
     <dependencyManagement>
@@ -61,6 +62,15 @@
             <groupId>org.apache.camel</groupId>
             <artifactId>camel-atom</artifactId>
         </dependency>
+        <dependency>
+            <groupId>jakarta.activation</groupId>
+            <artifactId>jakarta.activation-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.graalvm.nativeimage</groupId>
+            <artifactId>svm</artifactId>
+            <scope>provided</scope>
+        </dependency>
     </dependencies>
 
     <build>
diff --git a/extensions/atom/runtime/src/main/java/org/apache/camel/quarkus/component/atom/graal/DataSourceUtilsSubstitutions.java b/extensions/atom/runtime/src/main/java/org/apache/camel/quarkus/component/atom/graal/DataSourceUtilsSubstitutions.java
new file mode 100644
index 0000000..b3ba05c
--- /dev/null
+++ b/extensions/atom/runtime/src/main/java/org/apache/camel/quarkus/component/atom/graal/DataSourceUtilsSubstitutions.java
@@ -0,0 +1,41 @@
+/*
+ * 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.component.atom.graal;
+
+import javax.activation.DataSource;
+import javax.activation.FileDataSource;
+
+import com.oracle.svm.core.annotate.Substitute;
+import com.oracle.svm.core.annotate.TargetClass;
+import org.apache.axiom.ext.activation.SizeAwareDataSource;
+import org.apache.axiom.util.activation.DataSourceUtils;
+
+@TargetClass(DataSourceUtils.class)
+final class DataSourceUtilsSubstitutions {
+
+    // Remove unwanted references to javax.mail.util.ByteArrayDataSource
+    @Substitute
+    public static long getSize(DataSource ds) {
+        if (ds instanceof SizeAwareDataSource) {
+            return ((SizeAwareDataSource) ds).getSize();
+        } else if (ds instanceof FileDataSource) {
+            return ((FileDataSource) ds).getFile().length();
+        } else {
+            return -1;
+        }
+    }
+}
diff --git a/extensions-jvm/atom/runtime/src/main/resources/META-INF/quarkus-extension.yaml b/extensions/atom/runtime/src/main/resources/META-INF/quarkus-extension.yaml
similarity index 97%
rename from extensions-jvm/atom/runtime/src/main/resources/META-INF/quarkus-extension.yaml
rename to extensions/atom/runtime/src/main/resources/META-INF/quarkus-extension.yaml
index 20be3a4..3077255 100644
--- a/extensions-jvm/atom/runtime/src/main/resources/META-INF/quarkus-extension.yaml
+++ b/extensions/atom/runtime/src/main/resources/META-INF/quarkus-extension.yaml
@@ -24,9 +24,8 @@
 name: "Camel Atom"
 description: "Poll Atom RSS feeds"
 metadata:
-  unlisted: true
   guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/atom.html"
   categories:
   - "integration"
   status:
-  - "preview"
+  - "stable"
diff --git a/extensions/pom.xml b/extensions/pom.xml
index 574988d..a5e656e 100644
--- a/extensions/pom.xml
+++ b/extensions/pom.xml
@@ -39,6 +39,7 @@
         <module>amqp</module>
         <module>arangodb</module>
         <module>as2</module>
+        <module>atom</module>
         <module>attachments</module>
         <module>avro</module>
         <module>aws-ec2</module>
diff --git a/extensions-jvm/atom/integration-test/pom.xml b/integration-tests/atom/pom.xml
similarity index 59%
rename from extensions-jvm/atom/integration-test/pom.xml
rename to integration-tests/atom/pom.xml
index 8598ec5..1f3e806 100644
--- a/extensions-jvm/atom/integration-test/pom.xml
+++ b/integration-tests/atom/pom.xml
@@ -23,25 +23,14 @@
     <modelVersion>4.0.0</modelVersion>
     <parent>
         <groupId>org.apache.camel.quarkus</groupId>
-        <artifactId>camel-quarkus-build-parent-it</artifactId>
+        <artifactId>camel-quarkus-integration-tests</artifactId>
         <version>1.2.0-SNAPSHOT</version>
-        <relativePath>../../../poms/build-parent-it/pom.xml</relativePath>
     </parent>
 
-    <artifactId>camel-quarkus-atom-integration-test</artifactId>
-    <name>Camel Quarkus :: Atom :: Integration Test</name>
+    <artifactId>camel-quarkus-integration-test-atom</artifactId>
+    <name>Camel Quarkus :: Integration Tests :: Atom</name>
     <description>Integration tests for Camel Quarkus Atom extension</description>
 
-    <properties>
-        <!-- mvnd, a.k.a. Maven Daemon: https://github.com/mvndaemon/mvnd -->
-        <!-- The following rule tells mvnd to build the listed deployment modules before this module. -->
-        <!-- This is important because mvnd builds modules in parallel by default. The deployment modules are not -->
-        <!-- explicit dependencies of this module in the Maven sense, although they are required by the Quarkus Maven plugin. -->
-        <!-- Please update the rule whenever you change the dependencies of this module by running -->
-        <!--     mvn process-resources -Pformat    from the root directory -->
-        <mvnd.builder.rule>camel-quarkus-atom-deployment,camel-quarkus-support-policy-deployment</mvnd.builder.rule>
-    </properties>
-
     <dependencyManagement>
         <dependencies>
             <dependency>
@@ -63,6 +52,10 @@
             <groupId>io.quarkus</groupId>
             <artifactId>quarkus-resteasy</artifactId>
         </dependency>
+        <dependency>
+            <groupId>io.quarkus</groupId>
+            <artifactId>quarkus-resteasy-jsonb</artifactId>
+        </dependency>
 
         <!-- test dependencies -->
         <dependency>
@@ -75,6 +68,21 @@
             <artifactId>rest-assured</artifactId>
             <scope>test</scope>
         </dependency>
+
+        <!-- The following dependencies guarantee that this module is built after them. You can update them by running `mvn process-resources -Pformat -N` from the source tree root directory -->
+        <dependency>
+            <groupId>org.apache.camel.quarkus</groupId>
+            <artifactId>camel-quarkus-atom-deployment</artifactId>
+            <version>${project.version}</version>
+            <type>pom</type>
+            <scope>test</scope>
+            <exclusions>
+                <exclusion>
+                    <groupId>*</groupId>
+                    <artifactId>*</artifactId>
+                </exclusion>
+            </exclusions>
+        </dependency>
     </dependencies>
 
     <build>
@@ -92,4 +100,34 @@
             </plugin>
         </plugins>
     </build>
+
+    <profiles>
+        <profile>
+            <id>native</id>
+            <activation>
+                <property>
+                    <name>native</name>
+                </property>
+            </activation>
+            <properties>
+                <quarkus.package.type>native</quarkus.package.type>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-failsafe-plugin</artifactId>
+                        <executions>
+                            <execution>
+                                <goals>
+                                    <goal>integration-test</goal>
+                                    <goal>verify</goal>
+                                </goals>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 </project>
diff --git a/integration-tests/atom/src/main/java/org/apache/camel/quarkus/component/atom/it/AtomResource.java b/integration-tests/atom/src/main/java/org/apache/camel/quarkus/component/atom/it/AtomResource.java
new file mode 100644
index 0000000..0dbd963
--- /dev/null
+++ b/integration-tests/atom/src/main/java/org/apache/camel/quarkus/component/atom/it/AtomResource.java
@@ -0,0 +1,70 @@
+/*
+ * 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.component.atom.it;
+
+import javax.inject.Inject;
+import javax.json.Json;
+import javax.json.JsonArrayBuilder;
+import javax.json.JsonObject;
+import javax.json.JsonObjectBuilder;
+import javax.ws.rs.GET;
+import javax.ws.rs.Path;
+import javax.ws.rs.Produces;
+import javax.ws.rs.QueryParam;
+import javax.ws.rs.core.MediaType;
+
+import org.apache.abdera.model.Entry;
+import org.apache.abdera.model.Feed;
+import org.apache.camel.ConsumerTemplate;
+import org.apache.camel.Exchange;
+import org.apache.camel.component.atom.AtomConstants;
+
+@Path("/atom")
+public class AtomResource {
+
+    @Inject
+    ConsumerTemplate consumerTemplate;
+
+    @Path("/feed")
+    @GET
+    @Produces(MediaType.APPLICATION_JSON)
+    public JsonObject consumeAtomFeed(@QueryParam("test-port") int port) throws Exception {
+        Exchange exchange = consumerTemplate.receive("atom://http://localhost:" + port + "/atom.xml?splitEntries=false");
+        Feed feed = exchange.getMessage().getHeader(AtomConstants.ATOM_FEED, Feed.class);
+
+        JsonObjectBuilder atom = Json.createObjectBuilder();
+        atom.add("title", feed.getTitle());
+        atom.add("subtitle", feed.getSubtitle());
+        atom.add("link", feed.getLinks().get(0).getHref().toASCIIString());
+
+        JsonArrayBuilder entries = Json.createArrayBuilder();
+
+        for (Entry entry : feed.getEntries()) {
+            JsonObjectBuilder atomEntry = Json.createObjectBuilder();
+            atomEntry.add("title", entry.getTitle());
+            atomEntry.add("link", entry.getLinks().get(0).getHref().toASCIIString());
+            atomEntry.add("summary", entry.getSummary());
+            atomEntry.add("content", entry.getContent());
+            atomEntry.add("author", entry.getAuthor().getName());
+            entries.add(atomEntry);
+        }
+
+        atom.add("entries", entries.build());
+
+        return atom.build();
+    }
+}
diff --git a/integration-tests/atom/src/main/resources/META-INF/resources/atom.xml b/integration-tests/atom/src/main/resources/META-INF/resources/atom.xml
new file mode 100644
index 0000000..7a53044
--- /dev/null
+++ b/integration-tests/atom/src/main/resources/META-INF/resources/atom.xml
@@ -0,0 +1,54 @@
+<?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.
+
+-->
+<feed xmlns="http://www.w3.org/2005/Atom">
+    <title>Camel Quarkus Test Feed Title</title>
+    <subtitle>Camel Quarkus Test Feed Subtitle</subtitle>
+    <link href="https://camel.apache.org"/>
+    <entry>
+        <title>Test entry title 1</title>
+        <link href="https://camel.apache.org/test-entry-1"/>
+        <updated>2020-09-01T00:00:00Z</updated>
+        <summary>Test entry summary 1</summary>
+        <content type="text">Test entry content 1</content>
+        <author>
+            <name>Apache Camel</name>
+        </author>
+    </entry>
+    <entry>
+        <title>Test entry title 2</title>
+        <link href="https://camel.apache.org/test-entry-2"/>
+        <updated>2020-09-02T00:00:00Z</updated>
+        <summary>Test entry summary 2</summary>
+        <content type="text">Test entry content 2</content>
+        <author>
+            <name>Apache Camel</name>
+        </author>
+    </entry>
+    <entry>
+        <title>Test entry title 3</title>
+        <link href="https://camel.apache.org/test-entry-3"/>
+        <updated>2020-09-03T00:00:00Z</updated>
+        <summary>Test entry summary 3</summary>
+        <content type="text">Test entry content 3</content>
+        <author>
+            <name>Apache Camel</name>
+        </author>
+    </entry>
+</feed>
diff --git a/extensions-jvm/atom/integration-test/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomTest.java b/integration-tests/atom/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomIT.java
similarity index 71%
rename from extensions-jvm/atom/integration-test/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomTest.java
rename to integration-tests/atom/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomIT.java
index e6424b3..700d141 100644
--- a/extensions-jvm/atom/integration-test/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomTest.java
+++ b/integration-tests/atom/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomIT.java
@@ -16,19 +16,9 @@
  */
 package org.apache.camel.quarkus.component.atom.it;
 
-import io.quarkus.test.junit.QuarkusTest;
-import io.restassured.RestAssured;
-import org.junit.jupiter.api.Test;
+import io.quarkus.test.junit.NativeImageTest;
 
-@QuarkusTest
-class AtomTest {
-
-    @Test
-    public void loadComponentAtom() {
-        /* A simple autogenerated test */
-        RestAssured.get("/atom/load/component/atom")
-                .then()
-                .statusCode(200);
-    }
+@NativeImageTest
+class AtomIT extends AtomTest {
 
 }
diff --git a/integration-tests/atom/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomTest.java b/integration-tests/atom/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomTest.java
new file mode 100644
index 0000000..dbe33a0
--- /dev/null
+++ b/integration-tests/atom/src/test/java/org/apache/camel/quarkus/component/atom/it/AtomTest.java
@@ -0,0 +1,60 @@
+/*
+ * 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.component.atom.it;
+
+import java.util.LinkedHashMap;
+import java.util.List;
+
+import io.quarkus.test.junit.QuarkusTest;
+import io.restassured.RestAssured;
+import io.restassured.path.json.JsonPath;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+@QuarkusTest
+class AtomTest {
+
+    @Test
+    public void consumeAtomFeed() {
+        JsonPath json = RestAssured.given()
+                .queryParam("test-port", RestAssured.port)
+                .get("/atom/feed")
+                .then()
+                .statusCode(200)
+                .extract()
+                .body()
+                .jsonPath();
+
+        assertEquals("Camel Quarkus Test Feed Title", json.getString("title"));
+        assertEquals("Camel Quarkus Test Feed Subtitle", json.getString("subtitle"));
+        assertEquals("https://camel.apache.org", json.getString("link"));
+
+        List<LinkedHashMap<String, String>> entries = json.getList("entries");
+        assertEquals(3, entries.size());
+
+        for (int i = 0; i < entries.size(); i++) {
+            LinkedHashMap<String, String> entry = entries.get(i);
+            int index = i + 1;
+            assertEquals("Test entry title " + index, entry.get("title"));
+            assertEquals("https://camel.apache.org/test-entry-" + index, entry.get("link"));
+            assertEquals("Test entry summary " + index, entry.get("summary"));
+            assertEquals("Test entry content " + index, entry.get("content"));
+            assertEquals("Apache Camel", entry.get("author"));
+        }
+    }
+}
diff --git a/integration-tests/pom.xml b/integration-tests/pom.xml
index cf302bf..303c913 100644
--- a/integration-tests/pom.xml
+++ b/integration-tests/pom.xml
@@ -64,6 +64,7 @@
         <module>amqp</module>
         <module>arangodb</module>
         <module>as2</module>
+        <module>atom</module>
         <module>avro</module>
         <module>aws</module>
         <module>aws2</module>
diff --git a/poms/bom/pom.xml b/poms/bom/pom.xml
index 0ce222b..5dbb331 100644
--- a/poms/bom/pom.xml
+++ b/poms/bom/pom.xml
@@ -174,6 +174,10 @@
                         <groupId>commons-logging</groupId>
                         <artifactId>commons-logging</artifactId>
                     </exclusion>
+                    <exclusion>
+                        <groupId>org.apache.geronimo.specs</groupId>
+                        <artifactId>geronimo-activation_1.1_spec</artifactId>
+                    </exclusion>
                 </exclusions>
             </dependency>
             <dependency>
diff --git a/tooling/scripts/test-categories.yaml b/tooling/scripts/test-categories.yaml
index 359afbe..99d4e17 100644
--- a/tooling/scripts/test-categories.yaml
+++ b/tooling/scripts/test-categories.yaml
@@ -82,6 +82,7 @@ dozer-social:
   - telegram
   - twitter
   - master
+  - atom
 messaging-networking1:
   - activemq
   - amqp