[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/transport/rmi ...
Ron Sigal
ron_sigal at yahoo.com
Tue Aug 1 02:29:02 EDT 2006
User: rsigal
Date: 06/08/01 02:29:02
Modified: src/main/org/jboss/remoting/transport/rmi
RMIServerInvoker.java
Log:
JBREM-520: Moved creating of stub, and socket / server socket factories from setup() to start() so that factories can be changed between create() and start(), in line with other invokers.
Revision Changes Path
1.17 +12 -4 JBossRemoting/src/main/org/jboss/remoting/transport/rmi/RMIServerInvoker.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: RMIServerInvoker.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/transport/rmi/RMIServerInvoker.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- RMIServerInvoker.java 21 Jul 2006 19:27:29 -0000 1.16
+++ RMIServerInvoker.java 1 Aug 2006 06:29:02 -0000 1.17
@@ -50,7 +50,7 @@
*
* @author <a href="mailto:jhaynie at vocalocity.net">Jeff Haynie</a>
* @author <a href="mailto:tom.elrod at jboss.com">Tom Elrod</a>
- * @version $Revision: 1.16 $
+ * @version $Revision: 1.17 $
*/
public class RMIServerInvoker extends ServerInvoker implements RMIServerInvokerInf
{
@@ -79,13 +79,21 @@
super(locator);
}
- protected void setup() throws Exception
+ public void start() throws IOException
{
- super.setup();
+ super.start();
int bindPort = getServerBindPort();
Registry registry = null;
+
+ try
+ {
registry = getRegistry();
+ }
+ catch (Exception e)
+ {
+ throw new IOException(e.getMessage());
+ }
// stub = UnicastRemoteObject.exportObject(this, bindPort)
String bindHost = getServerBindAddress();
More information about the jboss-cvs-commits
mailing list