FileDocCategorySizeDatePackage
Main.javaAPI DocGlassfish v2 API2832Fri May 04 22:37:02 BST 2007com.sun.grizzly.rails.standalone

Main

public class Main extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        String railsRoot = null;

        if (args.length > 0) {
            railsRoot = args[0];
        } else {
            System.err.println("Usage: java com.sun.grizzly.rails.standalone.Main RAILS_ROOT");
            System.exit(1);
        }

        RailsSelectorThread selectorThread = new RailsSelectorThread();
        selectorThread.setRailsRoot(railsRoot);
        selectorThread.setWebAppRootPath(railsRoot + "/public");
        selectorThread.setPort(8080);
        selectorThread.setNumberOfRuntime(1);
        selectorThread.setDisplayConfiguration(true);
        selectorThread.initEndpoint();
        selectorThread.startEndpoint();