Skip to content
Permalink
Browse files

[WFLY-11966] Capability requirements declared twice in JCA root resou…

…rce definition

- JCA_NAMING_CAPABILITY is being overwritten by TRANSACTION_INTEGRATION_CAPABILITY , so this requirement is lost.

jira issue: https://issues.jboss.org/browse/WFLY-11966
  • Loading branch information
yersan committed Apr 10, 2019
1 parent ababc29 commit 47fa2988b85e58ca394066a8be3024b7309175ea
@@ -55,8 +55,7 @@ private JcaSubsystemRootDefinition(final boolean registerRuntimeOnly) {
super(new Parameters(PATH_SUBSYSTEM, JcaExtension.getResourceDescriptionResolver())
.setAddHandler(JcaSubsystemAdd.INSTANCE)
.setRemoveHandler(JcaSubSystemRemove.INSTANCE)
.setCapabilities(JCA_NAMING_CAPABILITY)
.setCapabilities(TRANSACTION_INTEGRATION_CAPABILITY)
.setCapabilities(JCA_NAMING_CAPABILITY, TRANSACTION_INTEGRATION_CAPABILITY)
);
this.registerRuntimeOnly = registerRuntimeOnly;
}
@@ -40,6 +40,7 @@
import org.jboss.as.model.test.ModelTestControllerVersion;
import org.jboss.as.model.test.ModelTestUtils;
import org.jboss.as.model.test.SingleClassFilter;
import org.jboss.as.naming.service.NamingService;
import org.jboss.as.subsystem.test.AbstractSubsystemBaseTest;
import org.jboss.as.subsystem.test.AdditionalInitialization;
import org.jboss.as.subsystem.test.KernelServices;
@@ -89,6 +90,7 @@ protected AdditionalInitialization createAdditionalInitialization() {
ConnectorServices.LOCAL_TRANSACTION_PROVIDER_CAPABILITY,
ConnectorServices.TRANSACTION_XA_RESOURCE_RECOVERY_REGISTRY_CAPABILITY,
ConnectorServices.TRANSACTION_SYNCHRONIZATION_REGISTRY_CAPABILITY,
NamingService.CAPABILITY_NAME,
"org.wildfly.threads.thread-factory.string");
}

0 comments on commit 47fa298

Please sign in to comment.
You can’t perform that action at this time.