| Author |
ClassLoader with EJB
|
Russ Ray
Ranch Hand
Joined: Feb 11, 2003
Posts: 52
|
|
I am using an XML and XSLT file to map/transform METADATA within an EJB. What I want to do is prevent the overkill of creating a web/database application just so I can access and read in my xml and xslt files into the EJB. My initial thought is to store the information under the META-INF directory for the ejb and access it some how. I have tried the following: this.getClass().getClassLoader().getResource("file:///META-INF/xml/NewTOInfo.xml"); This class is a utility class called by the MDB. This does not work and it returns a null; Can someone with a little more experience than I explain how I can go about doing this? Thanks in advance.....
|
 |
Pradeep bhatt
Ranch Hand
Joined: Feb 27, 2002
Posts: 8876
|
|
Remove the file protocol. [ September 24, 2003: Message edited by: Pradeep Bhat ]
|
Groovy
|
 |
Russ Ray
Ranch Hand
Joined: Feb 11, 2003
Posts: 52
|
|
Thank you VERY much! That got me started! Administrator, you may close this topic! Russ  [ September 24, 2003: Message edited by: Russ Ray ]
|
 |
 |
|
|
subject: ClassLoader with EJB
|
|
|