[jboss-cvs] JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection ...
Ron Sigal
ron_sigal at yahoo.com
Mon Jan 29 00:35:47 EST 2007
User: rsigal
Date: 07/01/29 00:35:47
Modified: src/tests/org/jboss/test/remoting/transport/bisocket/connection
Tag: remoting_2_x BisocketTestServer.java
Log:
JBREM-692: Added main().
Revision Changes Path
No revision
No revision
1.1.2.2 +20 -0 JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/BisocketTestServer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: BisocketTestServer.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/tests/org/jboss/test/remoting/transport/bisocket/connection/BisocketTestServer.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -b -r1.1.2.1 -r1.1.2.2
--- BisocketTestServer.java 19 Dec 2006 06:17:53 -0000 1.1.2.1
+++ BisocketTestServer.java 29 Jan 2007 05:35:47 -0000 1.1.2.2
@@ -38,4 +38,24 @@
{
return super.getPort() + 18;
}
+
+ public static void main(String[] args)
+ {
+ SocketTestServer server = new BisocketTestServer();
+ try
+ {
+ server.setUp();
+
+ // wait forever, let the user kill us at any point (at which point, the client will detect we went down)
+ while(true)
+ {
+ Thread.sleep(1000);
+ }
+
+ }
+ catch(Exception e)
+ {
+ e.printStackTrace();
+ }
+ }
}
\ No newline at end of file
More information about the jboss-cvs-commits
mailing list