db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robles, Rogelio" <Rogelio.Rob...@experian.com>
Subject RE: Configure Torque for Struts
Date Tue, 05 Aug 2003 23:17:35 GMT

> -----Original Message-----
> From: Keeney, Thomas [mailto:KeeneyT@SEC.GOV]
...
> 
> Hello All,
> 
> If you want to retrieve Torque.properties to pass into 
> Torque.init(), just
> load it from the classpath.
> 
> i.e. put Torque.properties into WEB-INF/classes
> 
> then use the following code:
>       URL propsFile =
> this.getClass().getClassLoader().getResource("Torque.properties");
> Torque.init(propsFile.getPath());
> 

If I want to do an .EAR (or .WAR only) deployment of a Torque based app I
need Torque to read its properties using an InputStream (with the help of
getClassLoader().getResourceAsStream()) is that directly supported by
Torque? if is not directly what do you do for a deployment scenario like
that?

Rogelio



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


Mime
View raw message