[Opensource] Accessing DB Objects directly
Michael Rimov
rimovm at centercomp.com
Tue Sep 3 15:25:21 PDT 2002
At 10:29 AM 9/3/2002 -0500, you wrote:
>I'm trying to bypass the controller layer in expresso and access DB
>Objects directly. What are the housekeeping elements that i would need to
>initialize (right now i just do a ConfigManager.load). Is there anything
>else... like Session Management etc that i would need to start-up.
ConfigManager doesn't have to be loaded if InitServlet is already
loaded.... After that, you can go straight to use DBObjects and
Logging. If you're looking to bypass security, either derive from DBObject
instead of SecuredDBObject (not actually recommended) or when you
instantiated your dbobject set the uid to SecuredDBObject.SYSTEM_ACCOUNT
Otherwise, there shouldn't be much more needed if any... I programmed
DBObjects directly for at least a year when first dealing with Expresso.
HTH!
-Mike
More information about the Opensource
mailing list