[rules-users] Effect of KnowledgeAgent reload on currently running rules

Jamie jshaw at llbean.com
Thu May 19 09:44:03 EDT 2011


Thanks, Esteban.  I'm going to need to do some testing.  I'll post back my findings...

-- Jamie
________________________________
From: Esteban [via Drools] [mailto:ml-node+2961373-771292982-397044 at n3.nabble.com]
Sent: Thursday, May 19, 2011 9:41 AM
To: Jamie Shaw
Subject: Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

I'm not sure how the rete is modified and if the modifications are synchronized with any ongoing operation.
If you want to make sure that the rete is modified when your application is in a "safe-point", then you will need to turn off ResourceChangeMonitor service and call its scan() method manually.
We are already doing that in some of Kagent's tests. You can take a look to these 2 classes:
https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/agent/BaseKnowledgeAgentTest.java
<https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/agent/BaseKnowledgeAgentTest.java>https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentIncrementalChangeSetTest.java

<https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/agent/KnowledgeAgentIncrementalChangeSetTest.java>Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com

2011/5/17 Jamie <[hidden email]</user/SendEmail.jtp?type=node&node=2961373&i=0>>
That's good news - thanks again!

-- Jamie

________________________________
From: Wolfgang Laun-2 [via Drools] [mailto:[hidden email]</user/SendEmail.jtp?type=node&node=2961373&i=1>[hidden email]<http://user/SendEmail.jtp?type=node&node=2953003&i=0>]
Sent: Tuesday, May 17, 2011 11:41 AM
To: Jamie Shaw
Subject: Re: [rules-users] Effect of KnowledgeAgent reload on currently running rules

IIRC, for stateless sessions only the next session you create from
the updated RuleBase is affected.

-W
On 17 May 2011 15:52, Jamie <[hidden email]<http://user/SendEmail.jtp?type=node&node=2952942&i=0>> wrote:
Thanks for pointing me to that thread, Wolfgang - very interesting
discussion.  It confirms my fear, at least for stateful sessions.  Do you
know if it's true for stateless sessions as well?

--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Effect-of-KnowledgeAgent-reload-on-currently-running-rules-tp2947988p2952592.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
[hidden email]<http://user/SendEmail.jtp?type=node&node=2952942&i=1>

https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]<http://user/SendEmail.jtp?type=node&node=2952942&i=2>
https://lists.jboss.org/mailman/listinfo/rules-users
________________________________
If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/rules-users-Effect-of-KnowledgeAgent-reload-on-currently-running-rules-tp2947988p2952942.html
To unsubscribe from [rules-users] Effect of KnowledgeAgent reload on currently running rules, click here.

________________________________
View this message in context: RE: [rules-users] Effect of KnowledgeAgent reload on currently running rules<http://drools.46999.n3.nabble.com/rules-users-Effect-of-KnowledgeAgent-reload-on-currently-running-rules-tp2947988p2953003.html>

Sent from the Drools: User forum mailing list archive<http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html> at Nabble.com.

_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=2961373&i=2>
https://lists.jboss.org/mailman/listinfo/rules-users


_______________________________________________
rules-users mailing list
[hidden email]</user/SendEmail.jtp?type=node&node=2961373&i=3>
https://lists.jboss.org/mailman/listinfo/rules-users

________________________________
If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/rules-users-Effect-of-KnowledgeAgent-reload-on-currently-running-rules-tp2947988p2961373.html
To unsubscribe from [rules-users] Effect of KnowledgeAgent reload on currently running rules, click here<http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2947988&code=anNoYXdAbGxiZWFuLmNvbXwyOTQ3OTg4fC0xNjUwOTk0NDgy>.


--
View this message in context: http://drools.46999.n3.nabble.com/rules-users-Effect-of-KnowledgeAgent-reload-on-currently-running-rules-tp2947988p2961387.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110519/4adf1ecb/attachment.html 


More information about the rules-users mailing list