summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/implementation-bpel-ode
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-08-18 06:33:50 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2008-08-18 06:33:50 +0000
commitdfadb1bb4402417a64d2d72551c85eb3803a50ac (patch)
tree42e334f7667eea60959f7fd0cdb9e6c4bf6b4066 /java/sca/modules/implementation-bpel-ode
parent086cc87c21f355e16c05ff1ea4b64e126ec27948 (diff)
Moved databinding setting to DOM from implementation-bpel to implementation-bpel-ode as it's really a runtime specific requirement to use DOM, here an ODE requirement. That's also what other implementation extensions do, they set the databinding in the runtime module instead of the model module.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@686681 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-bpel-ode')
-rw-r--r--java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProvider.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProvider.java b/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProvider.java
index 7086e1bc2f..b67d6755c3 100644
--- a/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProvider.java
+++ b/java/sca/modules/implementation-bpel-ode/src/main/java/org/apache/tuscany/sca/implementation/bpel/ode/provider/BPELImplementationProvider.java
@@ -25,6 +25,9 @@ import javax.transaction.TransactionManager;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import org.apache.tuscany.sca.assembly.Reference;
+import org.apache.tuscany.sca.assembly.Service;
+import org.apache.tuscany.sca.databinding.xml.DOMDataBinding;
import org.apache.tuscany.sca.implementation.bpel.BPELImplementation;
import org.apache.tuscany.sca.implementation.bpel.ode.EmbeddedODEServer;
import org.apache.tuscany.sca.implementation.bpel.ode.ODEDeployment;
@@ -60,6 +63,16 @@ public class BPELImplementationProvider implements ImplementationProvider {
this.implementation = implementation;
this.odeServer = odeServer;
this.txMgr = txMgr;
+
+ // Configure the service and reference interfaces to use a DOM databinding
+ // as it's what ODE expects
+ for (Service service: implementation.getServices()) {
+ service.getInterfaceContract().getInterface().resetDataBinding(DOMDataBinding.NAME);
+ }
+ for (Reference reference: implementation.getReferences()) {
+ reference.getInterfaceContract().getInterface().resetDataBinding(DOMDataBinding.NAME);
+ }
+
}
public Invoker createInvoker(RuntimeComponentService service, Operation operation) {