I have one Struts web application in Tomcat 5.5 using JDK 1.5. Another technology used is Drools Rules Engine.
Thus, I was thinking to load the Drools rules engine (which took around 5-6 seconds) while I run the Tomcat. So this means that I need to create a Servlet with the init() method in it. Well, so far so good.
Now, the questions starts to come out. If I store the rules engine in [MyWebName]/WEB-INF/classes/rules.xml, how can I try to load it? I thought that in init(), there is no way to open file, am I right? I do not want to hard code the path unless I have to. Any solution or better idea?