From dfadb1bb4402417a64d2d72551c85eb3803a50ac Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Mon, 18 Aug 2008 06:33:50 +0000 Subject: 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 --- .../bpel/ode/provider/BPELImplementationProvider.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'java/sca/modules/implementation-bpel-ode') 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) { -- cgit v1.2.3