Brevsville Administrator wrote:
>
> Hi
>
> I've ben looking at Turbine as an alternate connection pool to
> DBConnectionBroker, but can't get it working. According to the docs :
>
> Build the pool using "build-turbine pool" which works fine.
> I have included the jar in my wrapper.classpath on jserv.
>
> I'm importing
>
> org.apache.turbine.util.db.pool.*;
>
> Then using the code:
>
> try{
> DBConnection db = DBBroker.getInstance().getConnection();
> Connection Conn = db.getConnection();
> ......do other stuff
> }catch (Exception e){
> e.printStackTrace();
> log("Exception: +e.getMessage(); //this reports NULL
> }
>
> The code is "stopping" after
> DBConnection db = DBBroker.getInstance().getConnection();
>
> But no exception is being thrown and neither my mod_jserv.log now
> jserv.log nor turbine.log are reporting any errors. And the catch is
> reporting NULL as the exception.getMessage().
>
> I wasn't sure if I need to put my TurbineResources.Properties in the
> turbine path or my servlet zone so I put it in both. But if the fiel
> wasn't found then surely mod_jserv should show an exception with debug set
> to info.
Did you remember to do a
TurbineResourceService.setPropertiesFileName(fileName)?
--
Daniel Rall <[EMAIL PROTECTED]>
http://collab.net/ | open source | do the right thing
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]