You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Jason McKerr <mc...@nacse.org> on 2003/08/04 18:58:45 UTC
Startup Cache
Hey all,
I'm basically trying to "start" the cache at startup time in a J2EE
application server.
Is there a method somewhere that I can call that will instantiate the
cache that is defined by ObjectCacheClass in the OJB.properties file?
Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Startup Cache
Posted by Armin Waibel <ar...@code-au-lait.de>.
Hi Jason,
----- Original Message -----
From: "Jason McKerr" <mc...@nacse.org>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Monday, August 04, 2003 6:58 PM
Subject: Startup Cache
> Hey all,
>
> I'm basically trying to "start" the cache at startup time in a J2EE
> application server.
>
> Is there a method somewhere that I can call that will instantiate the
> cache that is defined by ObjectCacheClass in the OJB.properties file?
>
First, each PB instance create its own ObjectsCache instance
using ObjectCacheFactory. So lookup a PB will "start" the cache.
If you do some static initialization in your ObjectCache implementation
you only need to lookup a PB instance (once).
HTH
regards,
Armin
> Jason
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org
Re: Startup Cache
Posted by Thomas Mahler <th...@web.de>.
ObjectCacheFactory.getInstance().createObjectCache(broker)
Jason McKerr wrote:
> Hey all,
>
> I'm basically trying to "start" the cache at startup time in a J2EE
> application server.
>
> Is there a method somewhere that I can call that will instantiate the
> cache that is defined by ObjectCacheClass in the OJB.properties file?
>
> Jason
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org