db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/xdocs faq.xml
Date Mon, 02 Feb 2004 09:34:38 GMT
arminw      2004/02/02 01:34:38

  Modified:    xdocs    faq.xml
  Log:
  update connection handling section
  
  Revision  Changes    Path
  1.31      +14 -1     db-ojb/xdocs/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/xdocs/faq.xml,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- faq.xml	5 Jan 2004 10:13:13 -0000	1.30
  +++ faq.xml	2 Feb 2004 09:34:38 -0000	1.31
  @@ -839,7 +839,20 @@
   broker.commitTransaction();
   broker.close();
       </source>
  -    Do not close or commit the connection, this will be done by OJB.
  +    Do not close or commit the connection, this will be done by OJB when tx commit/abort
  +    was called.
  +    </p>
  +    <p>
  +        If no transaction was running, it is possible to release connection after
  +        use by calling
  +<source>
  +pBroker.serviceConnectionManager().releaseConnection();
  +</source>
  +This cleanup the used connection, e.g. returns it to pool. (<i>Never do a con.close()
call!!</i>)
  +<br/>
  +If you don't do any connection cleanup, at the latest connection was released on PB.close()
call.
  +    </p>
  +    <p>
       See ditto <a href="#Is it possible to perform my own sql-queries in OJB?">
       Is it possible to perform my own sql-queries in OJB?</a>.
       </p>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message