summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/xml/JEEImplementationProcessor.java
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--branches/sca-java-1.x/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/xml/JEEImplementationProcessor.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/branches/sca-java-1.x/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/xml/JEEImplementationProcessor.java b/branches/sca-java-1.x/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/xml/JEEImplementationProcessor.java
index 8ac32f753c..cd5f3eb222 100644
--- a/branches/sca-java-1.x/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/xml/JEEImplementationProcessor.java
+++ b/branches/sca-java-1.x/modules/implementation-jee/src/main/java/org/apache/tuscany/sca/implementation/jee/xml/JEEImplementationProcessor.java
@@ -213,6 +213,8 @@ public class JEEImplementationProcessor extends BaseStAXArtifactProcessor implem
if(jeeOptionalExtension != null) {
jeeOptionalExtension.createImplementationJeeComposite((WebModuleInfo)moduleInfo, implementation);
}
+ // now resolve the implementation composite as a real composite.
+ compositeProcessor.resolve((Composite)implementation, resolver);
}
} else if(moduleInfo instanceof EjbModuleInfo) {
// Check for ejb-jar composite
@@ -236,6 +238,8 @@ public class JEEImplementationProcessor extends BaseStAXArtifactProcessor implem
if(jeeOptionalExtension != null) {
jeeOptionalExtension.createImplementationJeeComposite((EjbModuleInfo)moduleInfo, implementation);
}
+ // now resolve the implementation composite as a real composite.
+ compositeProcessor.resolve((Composite)implementation, resolver);
}
} else if(moduleInfo instanceof JavaEEApplicationInfo) {
// Check for application composite
@@ -268,14 +272,13 @@ public class JEEImplementationProcessor extends BaseStAXArtifactProcessor implem
if(jeeOptionalExtension != null) {
jeeOptionalExtension.createImplementationJeeComposite((JavaEEApplicationInfo)moduleInfo, implementation);
}
+ // now resolve the implementation composite as a real composite.
+ compositeProcessor.resolve((Composite)implementation, resolver);
}
}
- // now resolve the implementation composite as a real composite.
- // Any artifacts from an application composite will already be resolved.
- // Composite artifacts created on the fly to represent a non-enhanced JEE
- // archive need to be resolved.
- compositeProcessor.resolve((Composite)implementation, resolver);
+ // we could have resolved the whole implementation composite here except that
+ // it messes up the resolvers associated with the
}
implementation.setUnresolved(false);
}