This content has been marked as final.
Show 2 replies
-
1. Re: Load xml-file
dimitris Feb 28, 2005 1:07 PM (in response to holodok)Assuming you put your .xml file, e.g. in META-INF/ in you .sar, use
Thread.currentThread().getContextClassLoader().getResourceAsStream("META-INF/my.xml");
to get a reference to it. -
2. Re: Load xml-file
holodok Feb 28, 2005 2:29 PM (in response to holodok)I did the following:
Thread.currentThread().getContextClassLoader().getResource( "registry.xml" ).toString()
and got the following path:
file:/C:/jboss-3.2.3/bin/registry.xml
It seems that it doesn't work. :(