Re: Commons DBCP pooling problem



Hi,
I'm not sure how I would go about making the connection a method-level
object in this scenario. Would I create a new class with a
getConnection() type method for creating and returning the connection?
Thanks,
Mike

> Actually, the one extra thing I might try, is to make the
> connection and it's subobjects method-level objects. If the
> JSP is typically one instantiated class, any multiple threads
> executing it could overwrite the connection reference and
> leak connections instead of having them all closed.
> Joe

.



Relevant Pages

  • Re: RDP & Port Forwarding
    ... Scenario 2: Using Remote Desktop outside your network ... you have a persistent high-speed connection --if you only ... This is the port that Remote Desktop uses by default, ...
    (microsoft.public.windowsxp.general)
  • Re: Remobjects, good in multi-threading environment?
    ... the connection is interrupted regularly. ... This can certainly be handled by the WIB. ... require a response back. ... Hence your worst case scenario would still work and we would be able to ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Web Part Connection w/ DocLib?
    ... > I don't think you completely understand his scenario, ... > (this should create a Data View of the Doc Lib) ... > create a data view of the XML file - you can add and remove and format ... Finish the connection creating a hyperlink on one of your fields ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: ADO - Bad when it is time to Optimize
    ... They were using ADO 2.5 and the MSOracle provider (and Oracle ... ActiveConnection was 'nothing', but the connection was still out there. ... Which leads to another interesting point. ... scenario - the data access version, the provider/driver, the ...
    (microsoft.public.data.ado)
  • rda pull error
    ... i can pull some of the tables individually no problem but, ... connection is reqd..... ... can repeat the scenario again. ... put the pc back on the internal network and all the problems go away. ...
    (microsoft.public.sqlserver.ce)

Loading