db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Kucera <mkuc...@bbm.ca>
Subject RE: how to write a torque.init servlet
Date Fri, 07 Nov 2003 19:16:04 GMT

I use a context listener to initialize torque. It looks something like the

public final class ContextListener implements ServletContextListener
    public void contextInitialized(ServletContextEvent event)
        ServletContext context = event.getServletContext();
        String realPath = context.getRealPath("/");
        String torqueConfigFile = "/WEB-INF/Torque.properties";
        Torque.init(realPath + torqueConfigFile);

    public void contextDestroyed(ServletContextEvent event)

-----Original Message-----
From: Michael Bila [mailto:bilam@symbol.com] 
Sent: Friday, November 07, 2003 12:31 PM
To: torque-user@db.apache.org
Subject: how to write a torque.init servlet

does anyone have an example of a torque init servelt for postgress and

This email has been scanned for computer viruses.

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message