Re: [rules-users] Possible concurrency issue in Drools

2010-07-31 Thread Norman C
All, Just wanted to mention, I'm using version 5.0.1 of Drools. Thanks, Norman From: Norman C To: rules-users@lists.jboss.org Sent: Sat, July 31, 2010 9:50:19 PM Subject: Possible concurrency issue in Drools Hi All, I recently ran into an issue which I

[rules-users] Possible concurrency issue in Drools

2010-07-31 Thread Norman C
Hi All, I recently ran into an issue which I believe might point to a concurrency issue.  My server stopped processing new requests, so I did a thread dump.  In examining the dump, I found that all of the processing threads, save two, were blocking while trying to acquire the lock in NamedEnt

Re: [rules-users] are for loops possible in drools

2010-07-31 Thread ceemh3
Thanks for the response Since I dont actually need to keep a count of the number of strings that match the pattern in the list, I have changed your solution to the code below to make it simpler. rule "Matcher" when TestClass( $list : listOfStrings ) String( this matches "^a.b.*$

Re: [rules-users] are for loops possible in drools

2010-07-31 Thread Edson Tirelli
Try: when TestClass( $list : listOfStrings ) Number( $count : intValue ) from accumulate( String( this matches "^a.b.*$" ) from $list, count(1) ) then // $count has number of matching strings end []s Edson 2010/7/31 ceemh3 > > > does anybody know

[rules-users] are for loops possible in drools

2010-07-31 Thread ceemh3
does anybody know if there is a way to do for loops in drools ?. I am trying to loop through a list of string to see if one of the strings matches a pattern e.g. def listOfStrings = ['a','a.b','a.b.c'] for(String s:listOfStrings){ if(s matches "^a.b.*$"){ return true } } I have written th

Re: [rules-users] Drools Objects not released from heap

2010-07-31 Thread Edson Tirelli
Thanks for the feedback! Edson 2010/7/29 dmiller44 > > Edson, > > Sorry - we just solved this. The leak isn't in Drools (which I suspected > it > might not be) but was in fact with java.util.concurrent. > LinkedBlockingQueue. We were running JDK 6 Update 16 - which apparently > suffers

Re: [rules-users] Implement timer in rule

2010-07-31 Thread james corrigan
Hi David, I got it working, that was indeed the problem, i have two versions on my pc - 5.0 & 5.1. I stupidly thought that the document was referring to all 5.x versions. Thanks for your reply. Kind Regards, James. 2010/7/30 David Sinclair > This may be a stupid question, but are you running wit

[rules-users] 5.1.0

2010-07-31 Thread Mark Proctor
We haven't put it up on the official download site yet, just working on that at the moment. But here are the 5.1.0 artifacts: https://hudson.jboss.org/hudson/job/drools/4250/artifact/trunk/target/ Mark ___ rules-users mailing list rules-users@lists.j

Re: [rules-users] Accessing spring beans

2010-07-31 Thread Mark Proctor
On 30/07/2010 19:25, OptimusPrime wrote: > Hi, > > indeed I have an error message in Eclipse since the xsd file is not > available online (therefore no auto-completion). > > But it is not a blocking issue: the > http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/exte