Re: ? about ODatabase and threads

From: DriftWood <drift_wood_at_my-deja.com>
Date: Thu, 11 Jan 2001 21:19:33 GMT
Message-ID: <93l80o$r3o$1_at_nnrp1.deja.com>


Check out the OO4O help file (ORACLEO.HLP). There is a paramter that you need to specify when initializing the class library that tells it to enable thread safety. You will also want to upgrade to a (much) later/newer version (3.x or 8.1.x depending on your client). here is a snip from the docs:

"OO4O release 2.2 and higher is thread-safe and can be used effectively
in multithreaded applications and environments such as such as the Microsoft Internet Information Server (IIS). OO4O supports both the free and apartment threading models in COM/DCOM.

Access to OO4O object attributes are serialized when used with multiple threads of execution. To achieve maximum concurrency in query execution in a multithreaded application with OO4O, avoid sharing objects in multiple threads .

You should also avoid using commit and rollback operations on a session object that is shared among multiple threads since all connections associated with that session will be committed or rolled-back. If you want to perform commit and rollback operations on a session object, you should create a unique session object for each database object used."

--
-cheers
  DW
--------------------------------------------------------------------

"It is a kind of good deed to say well; and yet words are not deeds.
-William Shakespeare" Sent via Deja.com http://www.deja.com/
Received on Thu Jan 11 2001 - 22:19:33 CET

Original text of this message