[Objectbridge-developers] Thread-Safety of OJB Classes
Brought to you by:
thma
From: Sasha H. <sha...@br...> - 2001-05-29 20:38:52
|
Hi Thomas and friends, I have some questions regarding the thread-safety of some of the OJB classes as I will be using them in a multi-threaded application. Here is the thread-safety of the key objects, as I understand them. Please correct me if I'm wrong. ojb.server.OJB: Thread-safe - a single instance can be used by multiple threads to instantiate databases. org.odmg.Database (ojb.server.DatabaseImpl): Not thread-safe? - one instance per thread. Are there any issues/limitations with creating a pool of open databases? Also, from what I can determine from the source code, OJB maintains one connection per JdbcConnectionDescriptor in the repository XML file. Is that correct? Thanks, Sasha Haghani Toronto, Canada |