An easier way:
mmb = (MMBase)getModule("MMBASEROOT", true);
By specifying 'true', you garantee the MMBase module is started after the call.
Becaus egetModule does not start other modules if they ahve already been loaded (that is, teh classes ahve been instantiated), you can safely use this from within another module to make sure MMBase got started.
Pierre
