Re: [JDBC] Connection pooling




Hi,

of course you should only use a tomcat when your app is a webapp. You cant
use the tomcat connection pooling with normal apps.

Regards

Michael

"Arnaud" <pas@xxxxxxxxxx> schrieb im Newsbeitrag
news:dbif6d$cl0$2@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi!
>
> Here are a few things I don't understand about connection pooling.
>
> The DBCP API seems to be what I need, but I've read some articles about
> using Tomcat to manage connection pooling rather than doing it by hand.
>
> What I don't understand is that I need a servlet and my app isn't a
> webapp at all.
>
> So what's the advantage to use Tomcat rather than a simple
> PoolingDataSource ? Is it only the ability to set dead connection
> detection (connections we have forget to return to pool) ?
>
> If it is really more interesting, I absolutely don't understand how to
> call the servlet from by app and how to get a ResultSet from it.
>
> Could someone help me please.
>
> TIA
>
> --
> Arnaud


.



Relevant Pages

  • Re: System.exit(0) and tomcat
    ... > Hallo, I just noticed that using System.exitin my app ... > has the nice effect of stopping tomcat 4!!! ... Why would you use System.exitin a webapp? ...
    (comp.lang.java.help)
  • [JDBC] Connection pooling
    ... The DBCP API seems to be what I need, but I've read some articles about using Tomcat to manage connection pooling rather than doing it by hand. ... If it is really more interesting, I absolutely don't understand how to call the servlet from by app and how to get a ResultSet from it. ...
    (comp.lang.java.databases)
  • [JDBC] Connection pooling
    ... The DBCP API seems to be what I need, but I've read some articles about using Tomcat to manage connection pooling rather than doing it by hand. ... If it is really more interesting, I absolutely don't understand how to call the servlet from by app and how to get a ResultSet from it. ...
    (comp.lang.java.help)
  • Re: Novice Tomcat design pattern question
    ... so Tomcat seems like a good "best practice" choice. ... communication between the main app and Tomcat needs to go through RMI, ... Can I "bootstrap" my own java classes inside the Tomcat environment ...
    (comp.lang.java.programmer)
  • Re: [OT] Ping the network and/or /Java/Lazlo gurus.
    ... that the session has died and start a new one. ... In the tomcat conf directory there is a file called tomcat-users.xml ... The important bit is to define the rolename (admin and manager allow ... you the individual session between the browser and the app - that gets ...
    (uk.rec.motorcycles)