"Kim Chong Ho" <[EMAIL PROTECTED]> writes:

> Thanks a lot, Rafal.
> 
> In tdk-1.1a9 my source is below.
> 
>-----------------------------------------------------------------------------------------------------
>     static PoolBrokerService pool = PoolBrokerService.getInstance();
> 
>     public void doBuildTemplate( RunData data, Context context )
>     {
>         DBConnection db = null;
> 
>         try {
>             db = pool.getConnection();
>         } catch ( Exception ex) {
>             ex.printStackTrace();
>         } finally {
>             try {
>                 pool.releaseConnection(db);
>             } catch (Exception ex) {
>                 ex.printStackTrace();
>             }
>         }
> 
>-----------------------------------------------------------------------------------------------------
> As you said I had a look the JavaDoc but I am still hesitating how to use TurbineDB
> to connect to database while using Connection Pool. Could you give me sample code on 
>1.1a10?

I just checked a sample into the TurbineDB JavaDoc.  Please use that.
-- 

Daniel Rall <[EMAIL PROTECTED]>


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to