Pierre van Rooden wrote:
You can still not start MMBase from the bridge, as there will be no
configuration info (servletcontext or config path) present.
You could supply them with the -D option or with setting the MMBaseContext.

For quick tests, i run MMBase the following way:
        
        import org.mmbase.bridge.*;

public class Test extends Object {

                public static void main(String[] args) {
                        try
                        {
        // start mmbase                         
        org.mmbase.module.core.MMBaseContext.init("../../config",true);       
        org.mmbase.module.core.MMBase.getMMBase();

        // use the bridge
        CloudContext context = LocalContext.getCloudContext();
        Cloud cloud = context.getCloud("mmbase");
                        }
                catch (BridgeException b)
                {
                        System.out.println(b.toString());
                }
                catch (Exception e)
                {
                        System.out.println(e.toString());
                }
                return;
        }
}

I think that we should encourage users, to use MMBase also in the following way.
This way MMBase can be deployed in much more situations that we currently use MMBase


--
Time is on my side,....

Eduard Witteveen
+316 414 789 23




Reply via email to