From 2f953f83df0fecaab21f3cbf17569155ccae3458 Mon Sep 17 00:00:00 2001 From: hns Date: Wed, 1 Aug 2001 00:02:30 +0000 Subject: [PATCH] Moved creation of NodeManager past the initialization of root and userroot mappings --- src/helma/framework/core/Application.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index ac1ae56c..87da8865 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -87,7 +87,7 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IRep } public Application (String name, SystemProperties sysProps, SystemProperties sysDbProps, File home) - throws RemoteException, DbException, IllegalArgumentException { + throws RemoteException, IllegalArgumentException { if (name == null || name.trim().length() == 0) throw new IllegalArgumentException ("Invalid application name: "+name); @@ -126,8 +126,6 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IRep pwf = new File (appDir, "passwd"); pwfile = new CryptFile (pwf, parentpwfile); - nmgr = new NodeManager (this, dbDir.getAbsolutePath (), props); - charset = props.getProperty ("charset", "ISO-8859-1"); debug = "true".equalsIgnoreCase (props.getProperty ("debug")); @@ -152,7 +150,7 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IRep xmlrpcAccess = new XmlRpcAccess (this); } - public void start () { + public void start () throws DbException { eval = new RequestEvaluator (this); logEvent ("Starting evaluators for "+name); @@ -184,6 +182,8 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, IRep userRootMapping = new DbMapping (this, "__userroot__", p); rewireDbMappings (); + nmgr = new NodeManager (this, dbDir.getAbsolutePath (), props); + worker = new Thread (this, "Worker-"+name); worker.setPriority (Thread.NORM_PRIORITY+2); worker.start ();