Leandro Rodrigo Saad Cruz <[EMAIL PROTECTED]> writes:

> The last code snapshot I had used to have static methods for getting and
> releasing DBConnections. But in this one (Apache-Turbine-20010103), I
> have to create a PoolBrokerService and then get a connection from it.
> Isn't that wrong ?? I mean... shouldn't it be a "service" with static
> methods ??
> I noticed that TurbinePoolBrokerService uses it's default constructor,
> so how do I get the singleton I need in order to use correctly this
> service ???

import org.apache.turbine.services.db.TurbineDB;
import org.apache.turbine.util.db.pool.DBConnection;

DBConnection dbConn = TurbineDB.getConnection();


Daniel Rall


------------------------------------------------------------
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