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

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

commit d951fd0395ac9eaf2ac9bf4505337e3a38b5d7ac
Author: Jiri Ondrusek <[email protected]>
AuthorDate: Wed Sep 17 15:22:00 2025 +0200

    Artemis jms native quickfix
---
 .../camel/quarkus/component/jms/deployment/JmsProcessor.java   | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git 
a/extensions/jms/deployment/src/main/java/org/apache/camel/quarkus/component/jms/deployment/JmsProcessor.java
 
b/extensions/jms/deployment/src/main/java/org/apache/camel/quarkus/component/jms/deployment/JmsProcessor.java
index d18cc95026..25cec2ca58 100644
--- 
a/extensions/jms/deployment/src/main/java/org/apache/camel/quarkus/component/jms/deployment/JmsProcessor.java
+++ 
b/extensions/jms/deployment/src/main/java/org/apache/camel/quarkus/component/jms/deployment/JmsProcessor.java
@@ -21,9 +21,11 @@ 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.builditem.nativeimage.RuntimeInitializedClassBuildItem;
 import org.apache.camel.quarkus.component.jms.CamelJmsRecorder;
 import 
org.apache.camel.quarkus.core.deployment.spi.CamelContextCustomizerBuildItem;
 import 
org.apache.camel.quarkus.core.deployment.spi.CamelSerializationBuildItem;
+import org.apache.camel.support.ClassicUuidGenerator;
 
 class JmsProcessor {
 
@@ -49,4 +51,12 @@ class JmsProcessor {
             // Only create the JMS component customizer if the ActiveMQ 
Artemis RA is available
         }
     }
+
+    @BuildStep
+    void 
runtimeInitializedClasses(BuildProducer<RuntimeInitializedClassBuildItem> 
runtimeInitializedClass) {
+        runtimeInitializedClass.produce(new 
RuntimeInitializedClassBuildItem(ClassicUuidGenerator.class.getName()));
+        //todo quick fix, jgroups should not be mentioned here, but the 
quarkus-artemis is on org.jgroups:jgroups:jar:5.3.13.Final
+        // and Camel (and CQ) uses 5.4.11.Final; when a newer quarkus-artemis 
is released with the newer jgroups, this workaround can be removed
+        runtimeInitializedClass.produce(new 
RuntimeInitializedClassBuildItem("org.jgroups.util.Util"));
+    }
 }

Reply via email to