Hello,
I'm writing a service mbean that will load drl files from a directory within a sar and place the compiled rules on the jndi tree that will be accessible for my web apps. The only problem is that I don't know how to access the files withing the sar. Can someone explain or tell me what classes I use to access the files withing the sar?
Thank you.
Thread.currentThread().getContextClassLoader().getResource("path/to/file");
Where the path starts in your sar/jar/etc.
Regards
Doug