AW: [Objectbridge-developers] Thread-Safety of OJB Classes
Brought to you by:
thma
From: Mahler T. <tho...@it...> - 2001-05-31 12:07:31
|
Hi Sasha, > -----Urspr=FCngliche Nachricht----- > Von: Sasha Haghani [mailto:sha...@br...] > Gesendet: Dienstag, 29. Mai 2001 22:39 > An: 'obj...@li...' > Betreff: [Objectbridge-developers] Thread-Safety of OJB Classes >=20 >=20 > Hi Thomas and friends, >=20 > I have some questions regarding the thread-safety of some of=20 > the OJB classes > as I will be using them in a multi-threaded application. >=20 > Here is the thread-safety of the key objects, as I understand=20 > them. Please > correct me if I'm wrong. >=20 > ojb.server.OJB: Thread-safe - a single instance can be used=20 > by multiple > threads to instantiate databases. >=20 OK > org.odmg.Database (ojb.server.DatabaseImpl): Not thread-safe?=20 > - one instance > per thread. Are there any issues/limitations with creating a=20 > pool of open > databases? >=20 Everything in the ODMG package should be thread safe. The transaction manager was build to handle transactions running concurrently within separate threads. > Also, from what I can determine from the source code, OJB=20 > maintains one > connection per JdbcConnectionDescriptor in the repository XML=20 > file. Is that > correct? Exactly. regards, Thomas > Thanks, >=20 > Sasha Haghani > Toronto, Canada >=20 > _______________________________________________ > Objectbridge-developers mailing list > Obj...@li... > http://lists.sourceforge.net/lists/listinfo/objectbridge-developers >=20 |