I want to open my database handle in the autohandler, should I use <%once> or <%shared>?

If I understand it right, all the sub components will be able to use the $dbh handle that is declared in the autohandler regardless if <%once> or <%shared> is used.

I see that the difference between <%once> or <%shared> is that:

1.  With <%once> the $dbh handle will last the lifetime of the component.
2.  With <%shared> the $dbh handle will last only for each request.

So will <%once> last untill the apache server is rebooted versus <%shared> which is created and destroyed per page request?


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to