What is a session? A session is an instance of the class ooSession; it represents an extended interaction between an application and a connected federated database. A session provides transaction services that maintain the consistency of its connected federated database. All Objectivity/DB operations must be performed in transactions; you call the session’s methods to begin and terminate these transactions. How do I use a session? An application calls methods of a session to begin, checkpoint, commit, and abort a transaction. For examples of how to use sessions in your application visit our How To's section. Can I have multiple transactions per session? What about multiple sessions? A single session can begin and end any number of transactions, although a session can have at most one transaction at a time. An application can have multiple concurrent transactions only if it has multiple sessions; typically multiple sessions are used when an application has multiple threads. |
|||
