I get session only when I need to execute rules and I dispose them off after
rules are executed.
So before executing rules, I get session, insert facts, call fireAllRules()
and then dispose session in finally block.
And while adding/updating rule (ie. working on new KB), there are no
sessions at all.
Ejaz
--
View this message in context:
http://drools.46999.n3.nabble.com/threw-error-java-lang-ClassCastExceptio...
Sent from the Drools: User forum mailing list archive at
Nabble.com.