How to load drl file dynamically within the Application
I am developing one project.In that i created different packages.Each packages has lot of java files..
What i am doing is,i want to load a drl file dynamically from java class..That file is somewhere in the project.
My problem is,if i do in this way then i am getting null pointer exeception..that means that file is not loaded...
i used the following piece of code..
InputStream in=this.getClass().getClassLoader().getResourceAsS tream(" drl file name");
InputStream in=Thread.currentThread().getContextClassLoader(). getResourceAsStream("drl file name");
But both statements are not working....please anybody help me...
Thanks in advance