Hello ,
If you want to start mmbase from the command line this i how I do it

java -classpath $CLASSPATH -Dmmbase.htmlroot=`pwd`/../
-Dmmbase.config=`pwd`/../WEB-INF/config Start

where Start.java is bellow. perhaps It's an idea to let the cloud
provider start mmbase



import org.mmbase.util.logging.Logging;
import org.mmbase.module.tools.MMAdmin;
import org.mmbase.util.ResourceLoader;
import org.mmbase.module.core.MMBase;
import java.io.*;

public class Start{
        public static void main(String[] argv) throws Exception{
               
Logging.configure(ResourceLoader.getConfigurationRoot().getChildResourceLoader("log"),
"log.xml");
                org.mmbase.module.core.MMBaseContext.init();
                MMBase mmbase = MMBase.getMMBase();
                while (! mmbase.hasStarted()) {
                     Thread.sleep(1000);
                }
                System.err.println("started");
        }
}
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers

Reply via email to