[jboss-cvs] JBossRemoting/src/main/org/jboss/remoting/samples/detection/jndi ...
Tom Elrod
tom.elrod at jboss.com
Fri Jul 21 01:23:07 EDT 2006
User: telrod
Date: 06/07/21 01:23:07
Modified: src/main/org/jboss/remoting/samples/detection/jndi
SimpleDetectorServer.java SimpleJNDIServer.java
Log:
JBREM-538 - breaking out different remoting components into separate jars (per transport and detection).
Revision Changes Path
1.2 +2 -7 JBossRemoting/src/main/org/jboss/remoting/samples/detection/jndi/SimpleDetectorServer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SimpleDetectorServer.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/samples/detection/jndi/SimpleDetectorServer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SimpleDetectorServer.java 24 Apr 2006 03:19:47 -0000 1.1
+++ SimpleDetectorServer.java 21 Jul 2006 05:23:07 -0000 1.2
@@ -1,20 +1,17 @@
package org.jboss.remoting.samples.detection.jndi;
-import org.jboss.remoting.detection.multicast.MulticastDetector;
-import org.jboss.remoting.detection.jndi.JNDIDetector;
+import org.jboss.remoting.InvocationRequest;
import org.jboss.remoting.InvokerLocator;
import org.jboss.remoting.ServerInvocationHandler;
-import org.jboss.remoting.InvocationRequest;
import org.jboss.remoting.ServerInvoker;
import org.jboss.remoting.callback.InvokerCallbackHandler;
+import org.jboss.remoting.detection.jndi.JNDIDetector;
import org.jboss.remoting.transport.Connector;
-import org.jnp.server.Main;
import javax.management.MBeanServer;
import javax.management.MBeanServerFactory;
import javax.management.ObjectName;
import java.net.InetAddress;
-import java.net.UnknownHostException;
/**
* A simple JBoss/Remoting remoting server. This uses an inner class SampleInvocationHandler as the invocation
@@ -61,7 +58,6 @@
detector.start();
println("JNDIDetector has been created and is listening for new NetworkRegistries to come online");
- return;
}
/**
@@ -89,7 +85,6 @@
connector.start();
- return;
}
/**
1.2 +1 -14 JBossRemoting/src/main/org/jboss/remoting/samples/detection/jndi/SimpleJNDIServer.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: SimpleJNDIServer.java
===================================================================
RCS file: /cvsroot/jboss/JBossRemoting/src/main/org/jboss/remoting/samples/detection/jndi/SimpleJNDIServer.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SimpleJNDIServer.java 24 Apr 2006 03:19:47 -0000 1.1
+++ SimpleJNDIServer.java 21 Jul 2006 05:23:07 -0000 1.2
@@ -1,17 +1,7 @@
package org.jboss.remoting.samples.detection.jndi;
-import org.jboss.remoting.detection.jndi.JNDIDetector;
-import org.jboss.remoting.InvokerLocator;
-import org.jboss.remoting.ServerInvocationHandler;
-import org.jboss.remoting.InvocationRequest;
-import org.jboss.remoting.ServerInvoker;
-import org.jboss.remoting.callback.InvokerCallbackHandler;
-import org.jboss.remoting.transport.Connector;
import org.jnp.server.Main;
-import javax.management.MBeanServer;
-import javax.management.MBeanServerFactory;
-import javax.management.ObjectName;
import java.net.InetAddress;
/**
@@ -73,10 +63,7 @@
}
}
- SimpleJNDIServer.println("Starting JBoss/Remoting server... to stop this server, kill it manually via Control-C");
-
- String locatorURI = SimpleJNDIServer.transport + "://" + SimpleJNDIServer.host + ":" + SimpleJNDIServer.port;
- SimpleJNDIServer.println("This server's endpoint will be: " + locatorURI);
+ SimpleJNDIServer.println("Starting JNDI server... to stop this server, kill it manually via Control-C");
SimpleJNDIServer server = new SimpleJNDIServer();
try
More information about the jboss-cvs-commits
mailing list