tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r828283 - /tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java
Date Thu, 22 Oct 2009 02:25:36 GMT
Author: lresende
Date: Thu Oct 22 02:25:36 2009
New Revision: 828283

URL: http://svn.apache.org/viewvc?rev=828283&view=rev
Log:
Stop setting JSON databinding in the interface contract now that we use jabsorb client for
remote invocation and that is taking care of databinding and returning expected java beans

Modified:
    tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java

Modified: tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java?rev=828283&r1=828282&r2=828283&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java
(original)
+++ tuscany/java/sca/modules/binding-jsonrpc-runtime/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/provider/JSONRPCReferenceBindingProvider.java
Thu Oct 22 02:25:36 2009
@@ -58,6 +58,7 @@
         this.reference = (RuntimeComponentReference) endpointReference.getReference();
         
         //clone the service contract to avoid databinding issues
+        /*
         try {
             this.referenceContract = (InterfaceContract)reference.getInterfaceContract().clone();
         } catch(CloneNotSupportedException e) {
@@ -65,6 +66,7 @@
         }
         
         JSONRPCDatabindingHelper.setDataBinding(referenceContract.getInterface());
+        */
         
         // Create an HTTP client
         HttpParams defaultParameters = new BasicHttpParams();
@@ -82,7 +84,8 @@
     }
 
     public InterfaceContract getBindingInterfaceContract() {
-        return referenceContract;
+        //return referenceContract;
+        return reference.getInterfaceContract();
     }
 
     public Invoker createInvoker(Operation operation) {



Mime
View raw message