Skip to content

Commit

Permalink
LRA native support
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Feb 24, 2021
1 parent e39b836 commit 46628e4
Show file tree
Hide file tree
Showing 23 changed files with 685 additions and 181 deletions.
8 changes: 4 additions & 4 deletions docs/modules/ROOT/pages/reference/extensions/lra.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
= LRA
:cq-artifact-id: camel-quarkus-lra
:cq-native-supported: false
:cq-status: Preview
:cq-native-supported: true
:cq-status: Stable
:cq-description: Camel saga binding for Long-Running-Action framework
:cq-deprecated: false
:cq-jvm-since: 1.2.0
:cq-native-since: n/a
:cq-native-since: 1.8.0

[.badges]
[.badge-key]##JVM since##[.badge-supported]##1.2.0## [.badge-key]##Native##[.badge-unsupported]##unsupported##
[.badge-key]##JVM since##[.badge-supported]##1.2.0## [.badge-key]##Native since##[.badge-supported]##1.8.0##

Camel saga binding for Long-Running-Action framework

Expand Down
6 changes: 3 additions & 3 deletions docs/modules/ROOT/partials/reference/others/lra.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// This file was generated by camel-quarkus-maven-plugin:update-extension-doc-page
:cq-artifact-id: camel-quarkus-lra
:cq-artifact-id-base: lra
:cq-native-supported: false
:cq-status: Preview
:cq-native-supported: true
:cq-status: Stable
:cq-deprecated: false
:cq-jvm-since: 1.2.0
:cq-native-since: n/a
:cq-native-since: 1.8.0
:cq-camel-part-name: lra
:cq-camel-part-title: LRA
:cq-camel-part-description: Camel saga binding for Long-Running-Action framework
Expand Down
83 changes: 0 additions & 83 deletions extensions-jvm/lra/integration-test/pom.xml

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion extensions-jvm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
<module>language</module>
<module>ldap</module>
<module>ldif</module>
<module>lra</module>
<module>lucene</module>
<module>management</module>
<module>milo</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,22 @@
<name>Camel Quarkus :: LRA :: Deployment</name>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-rest-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-saga-deployment</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-lra</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,19 @@

import io.quarkus.deployment.annotations.BuildProducer;
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.apache.camel.quarkus.core.deployment.spi.RoutesBuilderClassExcludeBuildItem;
import org.apache.camel.service.lra.LRASagaRoutes;
import org.jboss.logging.Logger;

class LraProcessor {

private static final Logger LOG = Logger.getLogger(LraProcessor.class);
private static final String FEATURE = "camel-lra";

@BuildStep
FeatureBuildItem feature() {
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
void excludeLraRoutes(BuildProducer<RoutesBuilderClassExcludeBuildItem> routesBuilderClassExcludes) {
routesBuilderClassExcludes.produce(RoutesBuilderClassExcludeBuildItem.ofClass(LRASagaRoutes.class));
Expand Down
1 change: 0 additions & 1 deletion extensions-jvm/lra/pom.xml → extensions/lra/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,5 @@
<modules>
<module>deployment</module>
<module>runtime</module>
<module>integration-test</module>
</modules>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

<properties>
<camel.quarkus.jvmSince>1.2.0</camel.quarkus.jvmSince>
<camel.quarkus.nativeSince>1.8.0</camel.quarkus.nativeSince>
</properties>

<dependencyManagement>
Expand All @@ -47,23 +48,25 @@
</dependencyManagement>

<dependencies>
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-rest-client</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-lra</artifactId>
<exclusions>
<exclusion>
<groupId>jakarta.xml.bind</groupId>
<artifactId>jakarta.xml.bind-api</artifactId>
</exclusion>
</exclusions>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-rest</artifactId>
</dependency>
<dependency>
<groupId>org.jboss.spec.javax.xml.bind</groupId>
<artifactId>jboss-jaxb-api_2.3_spec</artifactId>
<groupId>org.apache.camel.quarkus</groupId>
<artifactId>camel-quarkus-saga</artifactId>
</dependency>
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-lra</artifactId>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
name: "Camel LRA"
description: "Camel saga binding for Long-Running-Action framework"
metadata:
unlisted: true
guide: "https://camel.apache.org/camel-quarkus/latest/reference/extensions/lra.html"
categories:
- "integration"
status:
- "preview"
- "stable"
1 change: 1 addition & 0 deletions extensions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
<module>kudu</module>
<module>leveldb</module>
<module>log</module>
<module>lra</module>
<module>lumberjack</module>
<module>lzf</module>
<module>mail</module>
Expand Down

0 comments on commit 46628e4

Please sign in to comment.