[rules-users] Basic questions about rule deployment

Hehl, Thomas Thomas.Hehl at acs-inc.com
Thu Oct 11 07:51:10 EDT 2007


Just a note about URLs. URLs will automatically do base 64 encoding, which
primarily means that all spaces are replaced with %20%. If you are using a
URL to represent a file, make sure you test it with a file that has spaces
somewhere in the path.

I just learned this the hard way. You may need to convert your URL to a URI.

Good luck!

-----Original Message-----
From: rules-users-bounces at lists.jboss.org
[mailto:rules-users-bounces at lists.jboss.org] On Behalf Of Fermion
Sent: Thursday, October 11, 2007 5:29 AM
To: rules-users at lists.jboss.org
Subject: Re: [rules-users] Basic questions about rule deployment


Thank you very much!

I followed your advice and created URLs for my .drl and .dsl files.
Then I created a new URLClassLoader instance with these two URLs.
Finally I assigned this class loader to my packager builder using:

myPackageBuilder.getPackageBuilderConfiguration().setClassLoader(myURLClassL
oader);

Absolute path names seem to be Ok, as long as one uses "file:" as a prefix
to the URL string. I plan to use a config file to specify the locations of
my rule files (dsl and drl). The location of the config file itself will
then be defined by a command line argument.

Thanks again!
-- 
View this message in context:
http://www.nabble.com/Basic-questions-about-rule-deployment-tf4601653.html#a
13152365
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



More information about the rules-users mailing list