Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

can't access xml config file from helper class

843833Jan 17 2003 — edited Jan 17 2003
Hi everybody, here's the problem

I'm trying to create a Session Bean helper class that uses an XML mapping file for it's configuration. The XML file, helper class and Session Bean are all located in the same jar file. How do I access the XML file from the helper class? I've tried using Class.getResource(String name) and Class.getResourceAsStream(String name) as suggested in some other posts, but it does not work. I would really appreciate some help with this. BTW I'm deploying on SilverStream App Server 4.

Thnx in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2003
Added on Jan 17 2003
2 comments
167 views