Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Tomcat, CGI scripts and DBI connection persistence

by spx2 (Chaplain)
on Oct 30, 2011 at 11:07 UTC ( #934703=note: print w/ replies, xml ) Need Help??


in reply to Re: Tomcat, CGI scripts and DBI connection persistence
in thread Tomcat, CGI scripts and DBI connection persistence

After reading the docs of Apache::DBI I thought that this is .. in fact , possible. Are you sure they can't span a process's lifespan ?


Comment on Re^2: Tomcat, CGI scripts and DBI connection persistence
Re^3: Tomcat, CGI scripts and DBI connection persistence
by afoken (Parson) on Nov 01, 2011 at 09:57 UTC

    Apache::DBI is used in combination with mod_perl. It maintains a pool of DBI connections inside each Apache process, that can be used by Perl code executed by mod_perl, still inside the Apache process.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
Re^3: Tomcat, CGI scripts and DBI connection persistence
by ikegami (Pope) on Nov 01, 2011 at 20:37 UTC

    Perl code executed by mod_perl is executed in a Perl interpreter in the Apache process. The interpreter is created when apache starts up and it persists on until the apache child exits.

    While the db connection is still limited to a process -- each apache process has its own pool -- that process can handle more than one HTTP request.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934703]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2014-08-02 09:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who would be the most fun to work for?















    Results (55 votes), past polls