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+[hidden email]]
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/KnowledgeAgentIncrementalChangeSetTest.java

 

Best Regards,

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

2011/5/17 Jamie <[hidden email]>

That’s good news – thanks again!

 

-- Jamie

 


From: Wolfgang Laun-2 [via Drools] [mailto:[hidden email][hidden email]]
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]> 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]



_______________________________________________
rules-users mailing list
[hidden email]

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


Sent from the Drools: User forum mailing list archive at Nabble.com.


_______________________________________________
rules-users mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/rules-users

 


_______________________________________________
rules-users mailing list
[hidden email]
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.



View this message in context: RE: [rules-users] Effect of KnowledgeAgent reload on currently running rules
Sent from the Drools: User forum mailing list archive at Nabble.com.