I set up the rule session basically like this:
RuleServiceProvider ruleServiceProvider =
RuleServiceProviderManager.getRuleServiceProvider("http://drools.org...;
RuleRuntime ruleRuntime = ruleServiceProvider.getRuleRuntime();
(StatelessRuleSession) session = ruleRuntime.createRuleSession( uri, null,
RuleRuntime.STATELESS_SESSION_TYPE);
I can't see a way to use AgendaEventListener because there is no place to
add listeners. I tried using KnowledgeRuntimeLoggerFactory, but I get this
error "org.drools.jsr94.rules.StatelessRuleSessionImpl cannot be cast to
org.drools.event.KnowledgeRuntimeEventManager"
I was wondering if anyone knew of a good way to do logging with this setup?
Thanks,
Kevin
--
View this message in context:
http://n3.nabble.com/Logging-using-JSR94-StatelessRuleSession-tp707186p70...
Sent from the Drools - User mailing list archive at
Nabble.com.