Hi
I am using Package Builder for making rule base in my web application. The
code is:
public class DroolSetUp implements ResourceLoaderAware{
private static RuleBase ruleBase;
private Resource drlFiles;
public void setResourceLoader(ResourceLoader arg0) {
try {
ruleBase = RuleBaseFactory.newRuleBase();
File file = drlFiles.getFile();
FileInputStream fileStream = new FileInputStream(file);
Reader source = new InputStreamReader(fileStream );
PackageBuilder builder = new PackageBuilder();
builder.addPackageFromXml(source);
System.out.println(builder.toString());
Package pkg = builder.getPackage();
ruleBase.addPackage(pkg );
}
catch(Exception e)
{
}
}
}
But there is a problem that the method returns after the statement
PackageBuilder builder = new PackageBuilder();
Please le me know what the problem can be.
Waiting for an early response
Thanks
--
View this message in context:
http://www.nabble.com/Problem-using-Package-Builder-tp15891216p15891216.html
Sent from the drools - user mailing list archive at
Nabble.com.