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

Esteban Aliverti esteban.aliverti at gmail.com
Thu May 19 09:39:59 EDT 2011


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 <jshaw at llbean.com>

>  That’s good news – thanks again!
>
>
>
> -- Jamie
>
>
>  ------------------------------
>
> *From:* Wolfgang Laun-2 [via Drools] [mailto:ml-node+[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
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110519/54d98f55/attachment.html 


More information about the rules-users mailing list