[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/rmi ...

Tom Elrod tom.elrod at jboss.com
Wed Jul 12 00:49:53 EDT 2006


  User: telrod  
  Date: 06/07/12 00:49:52

  Modified:    src/tests/org/jboss/test/remoting/transport/rmi 
                        RMIInvokerClientTest.java
  Log:
  JBREM-496 & JBREM-492 & JBREM-535 - changed invoker loading to use a client and server factory instead of loading classes directly.  This allows users ability to plugin custom transport implementation with zero config.  Also added config for forcing remote call when client and server within same jvm (which was able to do previously using BYVALUE config, but not any more).  Also changed way to get hint if transport supports ssl to be provided by the transport factory instead of the transport itself.
  
  Revision  Changes    Path
  1.10      +10 -13    JBossRemoting/src/tests/org/jboss/test/remoting/transport/rmi/RMIInvokerClientTest.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: RMIInvokerClientTest.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/rmi/RMIInvokerClientTest.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- RMIInvokerClientTest.java	22 Jun 2006 21:17:20 -0000	1.9
  +++ RMIInvokerClientTest.java	12 Jul 2006 04:49:52 -0000	1.10
  @@ -22,18 +22,10 @@
   
   package org.jboss.test.remoting.transport.rmi;
   
  -import java.io.ByteArrayInputStream;
  -import java.rmi.MarshalledObject;
  -import java.rmi.server.UID;
  -import java.util.HashMap;
  -import java.util.Iterator;
  -import java.util.Map;
  -import java.util.Set;
  -import javax.xml.parsers.DocumentBuilderFactory;
  +import junit.framework.TestCase;
   import org.jboss.logging.Logger;
   import org.jboss.remoting.Client;
   import org.jboss.remoting.InvokerLocator;
  -import org.jboss.remoting.InvokerRegistry;
   import org.jboss.remoting.invocation.NameBasedInvocation;
   import org.jboss.remoting.marshal.serializable.SerializableMarshaller;
   import org.jboss.remoting.transport.Connector;
  @@ -42,13 +34,18 @@
   import org.jboss.test.remoting.TestUtil;
   import org.jboss.test.remoting.performance.synchronous.PerformanceServerTest;
   import org.jboss.test.remoting.performance.synchronous.PerformanceTestCase;
  -import org.jboss.test.remoting.transport.mock.MockClientInvoker;
   import org.jboss.test.remoting.transport.mock.MockInvokerCallbackHandler;
  -import org.jboss.test.remoting.transport.mock.MockServerInvoker;
   import org.jboss.test.remoting.transport.mock.MockTest;
   import org.w3c.dom.Document;
   
  -import junit.framework.TestCase;
  +import javax.xml.parsers.DocumentBuilderFactory;
  +import java.io.ByteArrayInputStream;
  +import java.rmi.MarshalledObject;
  +import java.rmi.server.UID;
  +import java.util.HashMap;
  +import java.util.Iterator;
  +import java.util.Map;
  +import java.util.Set;
   
   /**
    * This is the actual concrete test for the invoker client.
  @@ -118,7 +115,7 @@
         }
         log.debug("port = " + serverPort);
   
  -      InvokerRegistry.registerInvoker("mock", MockClientInvoker.class, MockServerInvoker.class);
  +//      InvokerRegistry.registerInvoker("mock", MockClientInvoker.class, MockServerInvoker.class);
         connector = new Connector();
   
         InvokerLocator locator = new InvokerLocator(buildLocatorURI(metadata, serverPort));
  
  
  



More information about the jboss-cvs-commits mailing list