Browse files

SWITCHYARD-1973 Fix failures in JCA test cases on WildFly

WildFly doesn't strip .rar suffix from deployment name while AS7 does
  • Loading branch information...
1 parent a95e75d commit 85300e1821686e3b005b2a38317d392a38bce00a @igarashitm igarashitm committed with rcernich Feb 18, 2014
Showing with 5 additions and 1 deletion.
  1. +5 −1 jca/src/main/java/org/switchyard/component/jca/deploy/JCAActivator.java
View
6 jca/src/main/java/org/switchyard/component/jca/deploy/JCAActivator.java
@@ -127,7 +127,11 @@ private InboundHandler handleServiceBinding(JCABindingModel config, QName name)
if (raName == null) {
throw JCAMessages.MESSAGES.noResourceAdapterNameConfigured();
}
- String raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(stripDotRarSuffix(raName));
+ String raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(raName);
+ if (raid == null && raName.endsWith(".rar")) {
+ // AS7 registers adapter's name with stripping .rar suffix unlike WildFly
+ raid = ConnectorServices.getRegisteredResourceAdapterIdentifier(stripDotRarSuffix(raName));
+ }
if (raid == null) {
throw JCAMessages.MESSAGES.uniqueKeyForResourceAdapter(raName);
}

0 comments on commit 85300e1

Please sign in to comment.