Thanks, Daniel - that got the code to compile.  However, when I run it I get
an Internal Servlet Error:

Root Cause:

Java.lang.NoSuchMethodError
    at
org.apache.turbine.services.db.TurbineDB.getPoolBroker(TurbineDB.java:309)
    at
org.apache.turbine.services.db.TurbineDB.releaseConnection(TurbineDB.java:23
2)
    ...

My guess is that the TurbineResources.properties file from 2.0 needs to be
updated for some 2.1 information.  Where are the contents of that file
documented?  Is that what is wrong here?

Thanks,
Bob

----- Original Message -----
From: "Daniel Rall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 27, 2001 3:02 PM
Subject: Re: Upgrading to Turbine 2.1 and DBBroker


> "Bob Swerdlow" <[EMAIL PROTECTED]> writes:
>
> > I've inherited some code that uses the Turbine 2.0  DBBroker class to
obtain
> > a DBConnection, as in:
> >
> >     DBConnection db = DBBroker.getInstance().getConnection();
> >
> > Now I'm trying to upgrade to Turbine 2.1 and there does not seem to be a
> > DBBroker class.  I have found PoolBrokerService and
TurbinePoolBrokerService
> > but these do not have a static member getInstance() or getConnection().
Do
> > I need to create a global TurbinePoolBrokerService object to manage the
pool
> > or can I create a new one each time I need a connection?
>
> Hi Bob.  Use the org.apache.turbine.services.db.TurbineDB class.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to