ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Javier Leyba" <xle...@gmail.com>
Subject Re: Resource load problem
Date Wed, 30 Aug 2006 06:41:30 GMT
On 8/29/06, Larry Meadors <lmeadors@apache.org> wrote:
> If you use a filename, it is no longer considered a resource.
>
> You could use this, though:
>
> String smcPath = System.getProperty("jboss.server.home.dir")
>   + "/conf/SqlMapConfig.xml";
> Resources.getUrlAsReader("file://" + smcPath);
>

I've solved the problem placing my config file in the classpath
because I read api docs where I saw all methods are related to
classpath..

Is this real ? How could I read my config from a path that isnĀ“t in classpath ?

Thanks in advance



-- 
Javier Leyba
Barcelona - Spain
http://blog.leyba.com.ar

Mime
View raw message