|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Tomcat, CGI scripts and DBI connection persistenceby spx2 (Chaplain) |
| on Oct 29, 2011 at 18:41 UTC ( #934628=perlquestion: print w/ replies, xml ) | Need Help?? |
|
spx2 has asked for the
wisdom of the Perl Monks concerning the following question:
Dear monks,
I've a situation in a project I'm working on where I'm not allowed to use anything other than tomcat to run CGI scripts. So basically the whole tomcat+CGI thing is settled, that's a given and it's part of the hypothesis(I know it's awkward but I can't change it). Now every time a user decides to access some page, some cgi-bin/<scriptname>.pl is executed, makes a DB connection, processes data, throws it back to the client and then exists, and as it exists it also closes the DB connection. If I would've been using Apache with mod_perl I could've used Apache::DBI to persist the connection, but I can't since I'm tied down to tomcat. Is there any way to persist DBI connections which are made from CGI Perl scripts running on top of tomcat ?
Back to
Seekers of Perl Wisdom
|
|