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?

ChongHo.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of 
Rafal Krzewski
Sent: Wednesday, January 10, 2001 2:06 AM
To: Turbine
Subject: Re: How to use PoolBrokerService


Kim Chong Ho wrote:
> 
> In tdk-1.1a9 I know how to use PoolBrokerService class from document.
> But I can't keep my source with PoolBrokerService because tdk-1.1a10 change class to 
>interface.
> Where I can find the way to use CONNECTION POOL with PoolBrokerService or other 
>things?

The new frontend to database maps and connection pools is 
org.apache.turbine.services.db.TurbineDB. 
Please read the JavaDocs for the details.

Rafal

--
Rafal Krzewski
Senior Internet Developer
mailto:[EMAIL PROTECTED]
+48 22 8534830 http://e-point.pl


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]
č˛ćěr¸�zŰŤn)ޢyb˛Ü(ŽH§�Ú ąĘ&N�§˛ćěr¸�zŰŤn)ŢĄ÷ĺ�Ëp˘š"�h�Ç(�'�­ČaśÚ˙
0�¨Ľjˇ!�÷�˘oíşśâ�î4�+-Â�ä�x˘˘oĎŽ�ĺzk#˘|(ŽH§�Ú ąĘ&

Reply via email to