You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by rf...@apache.org on 2006/11/27 23:30:28 UTC

svn commit: r479788 - in /incubator/tuscany/java/samples/sca: echo.binding/src/main/java/echo/EchoInvoker.java echo.databinding/src/main/java/echo/EchoInvoker.java

Author: rfeng
Date: Mon Nov 27 14:30:27 2006
New Revision: 479788

URL: http://svn.apache.org/viewvc?view=rev&rev=479788
Log:
Fix the build issue to implement TargetInvoker

Modified:
    incubator/tuscany/java/samples/sca/echo.binding/src/main/java/echo/EchoInvoker.java
    incubator/tuscany/java/samples/sca/echo.databinding/src/main/java/echo/EchoInvoker.java

Modified: incubator/tuscany/java/samples/sca/echo.binding/src/main/java/echo/EchoInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/echo.binding/src/main/java/echo/EchoInvoker.java?view=diff&rev=479788&r1=479787&r2=479788
==============================================================================
--- incubator/tuscany/java/samples/sca/echo.binding/src/main/java/echo/EchoInvoker.java (original)
+++ incubator/tuscany/java/samples/sca/echo.binding/src/main/java/echo/EchoInvoker.java Mon Nov 27 14:30:27 2006
@@ -43,14 +43,14 @@
         return isCacheable();
     }
 
-    public Object invokeTarget(final Object payload) throws InvocationTargetException {
+    public Object invokeTarget(final Object payload, final short sequence) throws InvocationTargetException {
         // echo back the result, a real binding would invoke some API for flowing the request
         return ((Object[])payload)[0];
     }
 
     public Message invoke(Message msg) throws InvocationRuntimeException {
         try {
-            Object resp = invokeTarget(msg.getBody());
+            Object resp = invokeTarget(msg.getBody(), NONE);
             msg.setBody(resp);
         } catch (InvocationTargetException e) {
             msg.setBodyWithFault(e.getCause());

Modified: incubator/tuscany/java/samples/sca/echo.databinding/src/main/java/echo/EchoInvoker.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/echo.databinding/src/main/java/echo/EchoInvoker.java?view=diff&rev=479788&r1=479787&r2=479788
==============================================================================
--- incubator/tuscany/java/samples/sca/echo.databinding/src/main/java/echo/EchoInvoker.java (original)
+++ incubator/tuscany/java/samples/sca/echo.databinding/src/main/java/echo/EchoInvoker.java Mon Nov 27 14:30:27 2006
@@ -43,7 +43,7 @@
         return isCacheable();
     }
 
-    public Object invokeTarget(final Object payload) throws InvocationTargetException {
+    public Object invokeTarget(final Object payload, final short sequence) throws InvocationTargetException {
         // echo back the result, a real binding would invoke some API for flowing the request
         Object result = ((Object[]) payload)[0];
         System.out.println("Echo: " + result);
@@ -52,7 +52,7 @@
 
     public Message invoke(Message msg) throws InvocationRuntimeException {
         try {
-            Object resp = invokeTarget(msg.getBody());
+            Object resp = invokeTarget(msg.getBody(), NONE);
             msg.setBody(resp);
         } catch (InvocationTargetException e) {
             msg.setBodyWithFault(e.getCause());



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org