This content has been marked as final.
Show 2 replies
-
1. Re: Parsing XML file out of jar
jaikiran Aug 9, 2007 3:28 AM (in response to dr_doom)How about:
builder.build(this.getClass().getClassLoader().getResourceAsStream("DBConfig.xml"));
Assuming that the DBConfig.xml is at the root of your jar. -
2. Re: Parsing XML file out of jar
dr_doom Aug 10, 2007 7:50 AM (in response to dr_doom)First of all, thanks for the relpy.
But as I said, I am trying to get this done without using the classloader.
Can I get the path from the JBoss Context?
Thanks for any further relies,
dr_doom