/*
 *  CPS108 Spring 1998
 *  Boggle: BuidServer.java
 *  Brian Fan & Geoff Berry
 */

package boggle;
import com.objectspace.voyager.*;
import com.objectspace.voyager.db.*;

public class BuildServer
{
    public static void main(String args[])
    {
	try
	{
	    System.out.println("Building Server");
// This doesn't work quite right...
//          Voyager.startup(2222);
//          Voyager.setDb( new VoyagerDb("2222.db", true) );

            VBoggleServerImpl server =
	    new VBoggleServerImpl( BoggleConsts.SERVER_ALIAS );

            server.liveForever();
//          server.saveNow();

            System.out.println("BuildServer Finished");
            Voyager.shutdown();
	}
	catch ( VoyagerException e )
	{
	    System.out.println(e);
	}
    }
}

