[rules-users] Optaplanner, loading drl from filesystm not off classpath

meganwoods megan.woods at monash.edu
Tue Aug 6 23:54:29 EDT 2013


Hi,

Is it possible to load drl files from the filesystem without them being on
the classpath.

I can create an XML solver factory using a stream from the constructor but
the loading of any DRL files appears to require those drl files to be on the
class path. 

Looking at the private XmlBuildFactory.buildKieBase on line 301 it uses
getClass().getResourceAsStream()

I was wondering if there was another strategy I could use to load DRL's off
the file system as opposed to off the classpath.

Cheers Megan Woods





--
View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-loading-drl-from-filesystm-not-off-classpath-tp4025378.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list