Hai:

Usually the best thing is to move the Torque properties file somewhere under
WEB-INF/ and then to call Torque.init() on this file either from a servlet
that is marked "load-on-startup" or from a context listener when the webapp
is just started.

-- Bill
----- Original Message -----
From: "Hai Hoang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 11:06 PM
Subject: Torque tutorial in tomcat 4.


> I went through the torque tutorial and everything is
> working great.  Now I want to test the code using JSP
> in Tomcat 4 instead of a java stand-alone program.  I
> moved the compile classes and dependent lib in top
> level torque directory to WEB-INF/classes and
> WEB-INF/lib respectively.  My question is what do I do
> with the torque.properties file? Where do I move this
> file to and how do I reference it.  Also, in general,
> is the a correct way of doing this?
>
> Thank you,
> Hai Hoang



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to