|
I don’t know if I understand you
correctly but the cloudcontext should be instantiated first: /** * Perform initializations so the
config file is read and the cloud * environment is set. */ private void init() { try { URL locatie =
this.getClass().getResource("../../config/config.ini"); sLocalPath = new
File(locatie.getPath()).getCanonicalPath(); iniFile.loadFile(sLocalPath); } catch (IOException ex) { log.error(ex); } // connect to didactor cloudContext=
ContextProvider.getCloudContext(iniFile.getProperty("Options",
"rmi", null)); user.put("username",
iniFile.getProperty("Options", "username", null)); user.put("password",
iniFile.getProperty("Options", "password", null)); cloud =
cloudContext.getCloud("mmbase","name/password",user); } My config file contains the connection
information Kind regards, Humphrey Van:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Namens
Herman Reintke LS, I am trying to use mmnase using the bridge interface. On
mmapps.sf.net I found a cloudprovider utility thatmight be of help but when I
use it in the class below : ------------------------------------------------- import org.mmbase.*; public class mmba { private static CloudProvider cloudProvider =
CloudProviderFactory.getCloudProvider(); -------------------------------------------- I get the execption : 2006-01-30 15:42:59,069 ERROR MMBase has not been started,
and cannot be started by this Class. (org.mmbase.bridge.LocalContext) Question : 1/ What is the easiest way of getting the bridge working. I
am not focussing on any security yet. 2/ How do I have to start mmbase when I want to use it
directly using using the bridge ? 3/ Are there any example programs available which directly
access mmbase ? Kind regards, Herman Reintke --
-- |
_______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
