> -----Original Message-----
> From: Keeney, Thomas [mailto:[EMAIL PROTECTED]
...
> 
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to