[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/local ...
Tom Elrod
tom.elrod at jboss.com
Wed Jul 12 00:49:52 EDT 2006
User: telrod
Date: 06/07/12 00:49:52
Modified: src/tests/org/jboss/test/remoting/transport/local
LocalInvokerTestCase.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.5 +7 -10 JBossRemoting/src/tests/org/jboss/test/remoting/transport/local/LocalInvokerTestCase.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: LocalInvokerTestCase.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/local/LocalInvokerTestCase.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- LocalInvokerTestCase.java 30 Dec 2005 05:26:47 -0000 1.4
+++ LocalInvokerTestCase.java 12 Jul 2006 04:49:52 -0000 1.5
@@ -22,24 +22,21 @@
package org.jboss.test.remoting.transport.local;
-import java.io.ByteArrayInputStream;
-import java.rmi.server.UID;
-import javax.xml.parsers.DocumentBuilderFactory;
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
import org.apache.log4j.Level;
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.transport.Connector;
import org.jboss.test.remoting.TestUtil;
-import org.jboss.test.remoting.transport.mock.MockClientInvoker;
-import org.jboss.test.remoting.transport.mock.MockServerInvoker;
import org.w3c.dom.Document;
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
+import javax.xml.parsers.DocumentBuilderFactory;
+import java.io.ByteArrayInputStream;
+import java.rmi.server.UID;
/**
* Test for the Local client invoker to verify will call directly on
@@ -102,7 +99,7 @@
}
log.debug("port = " + port);
- InvokerRegistry.registerInvoker("mock", MockClientInvoker.class, MockServerInvoker.class);
+// InvokerRegistry.registerInvoker("mock", MockClientInvoker.class, MockServerInvoker.class);
Connector connector = new Connector();
InvokerLocator locator = new InvokerLocator(transport + "://localhost:" + port);
StringBuffer buf = new StringBuffer();
More information about the jboss-cvs-commits
mailing list