This is an automated email from the ASF dual-hosted git repository.
jamesnetherton pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/main by this push:
new 47a96bf384 Fixed Oracle native failure in grouped tests fixes #7638
47a96bf384 is described below
commit 47a96bf384ab6dde2038533e3bea736bdf2eeb2f
Author: JiriOndrusek <[email protected]>
AuthorDate: Wed Aug 20 17:16:42 2025 +0200
Fixed Oracle native failure in grouped tests fixes #7638
---
.../oracle/deployment/DebeziumOracleProcessor.java | 2 ++
.../src/main/resources/application.properties | 25 ++++++++++++++++++++++
.../common/it/postgres/DebeziumOracleIT.java | 2 --
3 files changed, 27 insertions(+), 2 deletions(-)
diff --git
a/extensions/debezium-oracle/deployment/src/main/java/org/apache/camel/quarkus/component/debezium/oracle/deployment/DebeziumOracleProcessor.java
b/extensions/debezium-oracle/deployment/src/main/java/org/apache/camel/quarkus/component/debezium/oracle/deployment/DebeziumOracleProcessor.java
index 14cad95cd2..64a0345916 100644
---
a/extensions/debezium-oracle/deployment/src/main/java/org/apache/camel/quarkus/component/debezium/oracle/deployment/DebeziumOracleProcessor.java
+++
b/extensions/debezium-oracle/deployment/src/main/java/org/apache/camel/quarkus/component/debezium/oracle/deployment/DebeziumOracleProcessor.java
@@ -27,6 +27,7 @@ import io.quarkus.deployment.annotations.BuildStep;
import io.quarkus.deployment.builditem.FeatureBuildItem;
import io.quarkus.deployment.builditem.IndexDependencyBuildItem;
import io.quarkus.deployment.builditem.nativeimage.ReflectiveClassBuildItem;
+import oracle.jdbc.driver.OracleDriver;
class DebeziumOracleProcessor {
@@ -41,6 +42,7 @@ class DebeziumOracleProcessor {
void reflectiveClasses(BuildProducer<ReflectiveClassBuildItem>
reflectiveClasses) {
reflectiveClasses.produce(ReflectiveClassBuildItem.builder(
+ OracleDriver.class,
OracleConnector.class,
OracleConnectorTask.class,
OracleSourceInfoStructMaker.class,
diff --git
a/extensions/debezium-oracle/deployment/src/main/resources/application.properties
b/extensions/debezium-oracle/deployment/src/main/resources/application.properties
new file mode 100644
index 0000000000..8ce2fa2b0d
--- /dev/null
+++
b/extensions/debezium-oracle/deployment/src/main/resources/application.properties
@@ -0,0 +1,25 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+
+#Fix of native failure in case that other db types are present in the app.
+# * Oracle-debezium extension works if it is the only debezium extension
+# (because Quarkus selects Oracle as the default datasource, therefore know
about it)
+# * Problem starts with multiple debezium-connector.
+# In such case Quarkus selects e.g postgres as default datasource and
discards all oracle bits as it is not used by the application.
+#
+# Following property will remind Quarkus, that Oracle should not be discarded
+quarkus.datasource."camel-quarkus-debezium-oracle".db-kind=oracle
diff --git
a/integration-test-groups/debezium/oracle/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumOracleIT.java
b/integration-test-groups/debezium/oracle/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumOracleIT.java
index c739c19900..3401e4f90c 100644
---
a/integration-test-groups/debezium/oracle/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumOracleIT.java
+++
b/integration-test-groups/debezium/oracle/src/test/java/org/apache/camel/quarkus/component/debezium/common/it/postgres/DebeziumOracleIT.java
@@ -17,9 +17,7 @@
package org.apache.camel.quarkus.component.debezium.common.it.postgres;
import io.quarkus.test.junit.QuarkusIntegrationTest;
-import org.junit.jupiter.api.Disabled;
-@Disabled //todo
@QuarkusIntegrationTest
class DebeziumOracleIT extends DebeziumOracleTest {
}