Package info.walnutstreet.vs.ps03.dbserver

Source Code of info.walnutstreet.vs.ps03.dbserver.DBServer

/**
*
*/
package info.walnutstreet.vs.ps03.dbserver;

import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

/**
* @author Christian Bitschnau
* @version 0.1
*
*/
public class DBServer {

  public static void main(String[] args) {
    try {

      final int SERVER_PORT = 6666;

      Registry registry = LocateRegistry.createRegistry(SERVER_PORT);
      registry.rebind("DBServer", DBServerImpl
          .getInstance());
      System.out.println("DatabaseServer Running on port " + SERVER_PORT);

    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }

}
TOP

Related Classes of info.walnutstreet.vs.ps03.dbserver.DBServer

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.