Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 78905 invoked from network); 7 Nov 2003 19:12:40 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 7 Nov 2003 19:12:40 -0000 Received: (qmail 87518 invoked by uid 500); 7 Nov 2003 19:12:28 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 87503 invoked by uid 500); 7 Nov 2003 19:12:28 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 87485 invoked from network); 7 Nov 2003 19:12:27 -0000 Received: from unknown (HELO fireplug.bbm.ca) (207.176.247.142) by daedalus.apache.org with SMTP; 7 Nov 2003 19:12:27 -0000 Received: from ntlab1.tor.bbm.ca (ntlab1.bbm.ca [192.168.48.120]) by fireplug.bbm.ca (Postfix) with SMTP id 6FD2376C39 for ; Fri, 7 Nov 2003 14:12:30 -0500 (EST) Received: From torex1.tor.bbm.ca ([192.168.48.42]) by ntlab1.tor.bbm.ca (WebShield SMTP v4.5 MR1a); id 1068232272796; Fri, 7 Nov 2003 14:11:12 -0500 Received: by torex1.tor.bbm.ca with Internet Mail Service (5.5.2650.21) id ; Fri, 7 Nov 2003 14:12:57 -0500 Message-ID: <4CC412117D772B4C8F5F55C13E0F3C09047A9D@bbmex1.ad.bbm.ca> From: Michael Kucera To: 'Apache Torque Users List' Subject: RE: how to write a torque.init servlet Date: Fri, 7 Nov 2003 14:16:04 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I use a context listener to initialize torque. It looks something like the following: 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 tomcat? thanks ________________________________________________________________________ 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