[rules-users] StatefulKnowledgeSession.dispose()

tonytang baiyuantang at hengtiansoft.com
Fri Oct 21 06:50:44 EDT 2011


I think you are right, I change my test case. Just call dispose() at the
first time.
and the performance is the same as call it every time.

What ever the dispose method do, It is really really impact the
performance...10 times

for (int i = 0; i < 100; i++) { 
FactHandle handle = session.insert(messageList.get(i));// 
session.fireAllRules(); 

session.retract(handle); 
if(i== 0){
session.dispose(); 
}

} 

--
View this message in context: http://drools.46999.n3.nabble.com/StatefulKnowledgeSession-dispose-tp3440308p3440517.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list