Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jboss.remoting.samples.transporter.multiple.server;
 

Author(s):
Tom Elrod
public class Server
   private String locatorURI = "socket://localhost:5400";
   private TransporterServer server = null;
   public void start() throws Exception
   {
       = TransporterServer.createTransporterServer(new CustomerProcessorImpl(), CustomerProcessor.class.getName());
   }
   public void stop()
   {
      if( != null)
      {
         .stop();
      }
   }
   public static void main(String[] args)
   {
      Server server = new Server();
      try
      {
         server.start();
         Thread.currentThread().sleep(60000);
      }
      catch(Exception e)
      {
         e.printStackTrace();
      }
      finally
      {
         server.stop();
      }
   }
New to GrepCode? Check out our FAQ X