From 7dbabcb18c0638eef99a644cfe0e7adb0762856c Mon Sep 17 00:00:00 2001 From: hns Date: Thu, 18 Jan 2001 18:12:04 +0000 Subject: [PATCH] root and userroot are retrieved with propert dbmappings, added skin cache --- src/helma/framework/core/Application.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/Application.java b/src/helma/framework/core/Application.java index 74242960..14bee584 100644 --- a/src/helma/framework/core/Application.java +++ b/src/helma/framework/core/Application.java @@ -13,6 +13,7 @@ import helma.objectmodel.*; import helma.objectmodel.db.NodeManager; import helma.objectmodel.db.WrappedNodeManager; import helma.xmlrpc.*; +import helma.util.CacheMap; import FESI.Data.*; import FESI.Interpreter.*; import com.sleepycat.db.DbException; @@ -58,6 +59,8 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn private DbMapping rootMapping, userRootMapping, userMapping; + protected CacheMap skincache = new CacheMap (100); + public Application () throws RemoteException { super (); @@ -246,13 +249,13 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn } public INode getDataRoot () { - INode root = nmgr.safe.getNode ("0", null); + INode root = nmgr.safe.getNode ("0", rootMapping); root.setDbMapping (rootMapping); return root; } public INode getUserRoot () { - INode users = nmgr.safe.getNode ("1", null); + INode users = nmgr.safe.getNode ("1", userRootMapping); users.setDbMapping (userRootMapping); return users; }