tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r453225 - in /incubator/tuscany/java/sca/services/bindings/binding.rmi/src: main/java/org/apache/tuscany/binding/rmi/RMIService.java main/resources/META-INF/sca/default.scdl test/java/org/apache/tuscany/binding/rmi/BindingTestCase.java
Date Thu, 05 Oct 2006 13:13:28 GMT
Author: antelder
Date: Thu Oct  5 06:13:28 2006
New Revision: 453225

URL: http://svn.apache.org/viewvc?view=rev&rev=453225
Log:
TUSCANY-799, Commit patches from Venkat:
Fix RMI Service and Reference sample so that it can be run over Tuscany Java SCA Standalone.

Modified:
    incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/java/org/apache/tuscany/binding/rmi/RMIService.java
    incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/resources/META-INF/sca/default.scdl
    incubator/tuscany/java/sca/services/bindings/binding.rmi/src/test/java/org/apache/tuscany/binding/rmi/BindingTestCase.java

Modified: incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/java/org/apache/tuscany/binding/rmi/RMIService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/java/org/apache/tuscany/binding/rmi/RMIService.java?view=diff&rev=453225&r1=453224&r2=453225
==============================================================================
--- incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/java/org/apache/tuscany/binding/rmi/RMIService.java
(original)
+++ incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/java/org/apache/tuscany/binding/rmi/RMIService.java
Thu Oct  5 06:13:28 2006
@@ -97,7 +97,8 @@
         enhancer.setCallback(new RemoteMethodHandler(getHandler(), interfaze));
 
         if (!Remote.class.isAssignableFrom(serviceInterface)) {
-            RMIServiceClassLoader classloader = new RMIServiceClassLoader(Thread.currentThread().getContextClassLoader());
+            RMIServiceClassLoader classloader = 
+                new RMIServiceClassLoader(getClass().getClassLoader());
             final byte[] byteCode = generateRemoteInterface(serviceInterface);
             serviceInterface = classloader.defineClass(byteCode);
             enhancer.setClassLoader(classloader);

Modified: incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/resources/META-INF/sca/default.scdl?view=diff&rev=453225&r1=453224&r2=453225
==============================================================================
--- incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/resources/META-INF/sca/default.scdl
(original)
+++ incubator/tuscany/java/sca/services/bindings/binding.rmi/src/main/resources/META-INF/sca/default.scdl
Thu Oct  5 06:13:28 2006
@@ -21,8 +21,15 @@
 -->
 <composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
            xmlns:system="http://tuscany.apache.org/xmlns/system/1.0-SNAPSHOT"
+           xmlns:tuscany="http://tuscany.apache.org/xmlns/1.0-SNAPSHOT"
            name="org.apache.tuscany.binding.rmi">
-
+           
+    <tuscany:dependency>
+        <group>cglib</group>
+        <artifact>cglib-nodep</artifact>
+        <version>2.1_3</version>
+    </tuscany:dependency>
+    
     <component name="binding.rmi.bindingLoader">
         <system:implementation.system class="org.apache.tuscany.binding.rmi.RMIBindingLoader"/>
     </component>
@@ -31,14 +38,8 @@
         <system:implementation.system class="org.apache.tuscany.binding.rmi.RMIBindingBuilder"/>
     </component>
     
- <!--   <component name="binding.rmi.bindingInvoker">
-        <system:implementation.system class="org.apache.tuscany.binding.rmi.host.RMIInvoker"/>
-    </component>
-  -->
-    
     <!-- RMI Host service -->
     <component name="rmiHost">
-        <system:implementation.system class="org.apache.tuscany.binding.rmi.RMIHostImpl"/>
+        <system:implementation.system class="org.apache.tuscany.binding.rmi.host.RMIHostImpl"/>
     </component>
-    
 </composite>

Modified: incubator/tuscany/java/sca/services/bindings/binding.rmi/src/test/java/org/apache/tuscany/binding/rmi/BindingTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/bindings/binding.rmi/src/test/java/org/apache/tuscany/binding/rmi/BindingTestCase.java?view=diff&rev=453225&r1=453224&r2=453225
==============================================================================
--- incubator/tuscany/java/sca/services/bindings/binding.rmi/src/test/java/org/apache/tuscany/binding/rmi/BindingTestCase.java
(original)
+++ incubator/tuscany/java/sca/services/bindings/binding.rmi/src/test/java/org/apache/tuscany/binding/rmi/BindingTestCase.java
Thu Oct  5 06:13:28 2006
@@ -2,14 +2,15 @@
 
 import helloworld.HelloWorldRmiService;
 
-import org.apache.tuscany.test.SCATestCase;
+import org.apache.tuscany.test.SCATestCase; 
 import org.osoa.sca.CompositeContext;
 import org.osoa.sca.CurrentCompositeContext;
 
 public class BindingTestCase extends SCATestCase {
     private HelloWorldRmiService helloWorldRmiService;
-
+ 
     public void testRmiService() {
+        System.out.println(helloWorldRmiService.sayRmiHello("Tuscany World!"));
         assertEquals("Hello from the RMI Service to - Tuscany World! thro the RMI Reference",
                 helloWorldRmiService.sayRmiHello("Tuscany World!"));
     }



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


Mime
View raw message