[rules-users] access guvnor's drl file through URL

fevernova liusizhao at gmail.com
Tue Dec 7 11:20:00 EST 2010


Try adding some code for the authentification:

org.drools.io.impl.UrlResource urlResource =
(org.drools.io.impl.UrlResource) org.drools.io.ResourceFactory
	.newUrlResource(new java.net.URL("your_rule_here"));
urlResource.setBasicAuthentication("enabled");
urlResource.setUsername("test");
urlResource.setPassword("test");
kbuilder.add(urlResource, ruleType);
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/access-guvnor-s-drl-file-through-URL-tp2011104p2034385.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list