Re: [rules-users] Is drools ksession thread-safe?

2010-10-26 Thread Ji Oh Yoo
Thank you so much for your help! -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Is-drools-ksession-thread-safe-tp1736738p109.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users

Re: [rules-users] Is drools ksession thread-safe?

2010-10-21 Thread jschmied
>What should be the ProcessInstance prc variable in your code? >Also, did you have to create synchronized insert (and modify, update) method in your wrapper class? This is beacuse the whole API has to be synchronized within one Object. This means for me the KSession, the Process and WokItemManag

Re: [rules-users] Is drools ksession thread-safe?

2010-10-20 Thread Ji Oh Yoo
Thanks for the replies. What should be the ProcessInstance prc variable in your code? Also, did you have to create synchronized insert (and modify, update) method in your wrapper class? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Is-drools-ksession-threa

Re: [rules-users] Is drools ksession thread-safe?

2010-10-20 Thread jschmied
I think no. I use a session in a multithread environment I had to put a wrapper with synchronized methods around it to prevent random locks. FireUntilHalt consumes 100% CPU. I have a ruleflow and found: while (ksession.getPrcState(prc) == ProcessInstance.STATE_ACTIVE) { Threads.sleep(10)

Re: [rules-users] Is drools ksession thread-safe?

2010-10-20 Thread Swindells, Thomas
To: rules-users@lists.jboss.org > Subject: [rules-users] Is drools ksession thread-safe? > > > Hi, > > I want to fire a session with fireUntilHalt() > and make other threads insert facts in that session. > Is drools rule engine thread-safe in that sense? > > If not, wha

[rules-users] Is drools ksession thread-safe?

2010-10-19 Thread Ji Oh Yoo
Hi, I want to fire a session with fireUntilHalt() and make other threads insert facts in that session. Is drools rule engine thread-safe in that sense? If not, what else can I do? Thanks. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Is-drools-ksession-t