|
Re: [CDO] Correct usage of CDOView in a multithreaded application [message #1760525 is a reply to message #1760449] |
Fri, 28 April 2017 05:32 |
|
Robert Schulk wrote on Thu, 27 April 2017 14:381. Does each view create its own cached objects, or does CDO share data among views.
Yes, each view maintains its own set of objects. These object are thin wrappers, though. Their model data (CDORevisions) is shared across all views of a session.
Robert Schulk wrote on Thu, 27 April 2017 14:382. Is it thread-safe to pass a global view object to multiple threads or should we strictly open a new view for each thread?
CDOViews and CDOTransactions are generally thread-safe and can be shared across application components. With transactions it usually makes no sense, though, because it would be hard to decide what component executes a commit or rollback.
Cheers
/Eike
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
Powered by
FUDForum. Page generated in 0.02932 seconds