On Tue, Dec 30, 2003 at 10:46:41AM -0600, Eder, Warren CONT wrote:
> What are best pratices in Maverick for handling things that would of been done in a 
> Servlet's init routine.  Specifically I would like to set up connection pooling for 
> all future Oracle database connections.


I'm the wrong guy to ask about "best" anything, but you could try:


package your.packagename;
public class Dispatcher extends org.infohazard.maverick.Dispatcher {
    public Dispatcher() {
    }
    public void init() throws javax.servlet.ServletException {
        super.init();
        // Oracle init code
    }
}


... and then have web.xml use this class instead of
org.infohazard.maverick.Dispatcher.  Should get called exactly once.



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
[INVALID FOOTER]

Reply via email to