This is an automated email from the ASF dual-hosted git repository.
rzo1 pushed a commit to branch xbean-4.30-SNAPSHOT
in repository https://gitbox.apache.org/repos/asf/tomee.git
The following commit(s) were added to refs/heads/xbean-4.30-SNAPSHOT by this
push:
new 1c25d71cf0 Explicitly set the datasource ctor arg types for datasources
1c25d71cf0 is described below
commit 1c25d71cf0539b373d365d999161f87b6cc53a70
Author: Richard Zowalla <[email protected]>
AuthorDate: Sun Jan 4 12:59:12 2026 +0100
Explicitly set the datasource ctor arg types for datasources
---
.../main/java/org/apache/openejb/assembler/classic/Assembler.java | 7 +++++++
1 file changed, 7 insertions(+)
diff --git
a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
index 72bf4ca06a..a7050bb98c 100644
---
a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
+++
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/Assembler.java
@@ -3153,6 +3153,13 @@ public class Assembler extends AssemblerTool implements
org.apache.openejb.spi.A
}
}
serviceRecipe.setProperty("Definition",
PropertiesHelper.propertiesToString(props));
+ //explicitly set the argument types to avoid ambiquity in factory
resolution.
+ serviceRecipe.setConstructorArgTypes(
+ new Class[]{
+ String.class, boolean.class, Class.class,
String.class,
+ Duration.class, Duration.class, Duration.class,
+ boolean.class}
+ );
} // else: any other kind of resource relying on it? shouldnt be
replaceResourceAdapterProperty(serviceRecipe);