[rules-users] Error Inserting events into drools fusion stream

2010-10-21 Thread Ayush
Hi All, I'm trying to implement drools fusion into my app. The scenario of my app is as follows: - Facts will be received continuosly. - On receving fact I'm generating a new event and adding it into a new working memory entry point stream. Also I'm adding facts into session coz I'll be updati

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-21 Thread Pankaj Khattar
Hi, I am facing the same problem, i have read somewhere that we can use the same session throughout the application but I'm unable to figure it how? Also how can we insert events from my application into the same working memory entry-point? Below is the code I'm using please let me know if this

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-21 Thread Wolfgang Laun
Normally a Fusion session is created once, possibly initialized with some static facts, and then you use the entry point to insert events, call fireAllRules, and wait for the next event to arrive from its source. Therefore, keep the session and the entry point for repeated use by the last two state

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-21 Thread Ayush
Thanks for the reply. Can you please elaborate on it? Well we are facing issues keeping same session and entry point alive through out the application. As each event will be received as a new thread in my application so when I'm calling the class which inserts into session and fire-all rules t

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Wolfgang Laun
This is more a Java question than a Drools specific problem. You have several producers, running in threads, parallel or (more or less) one after the other. You have one consumer, the thread running the single session. Consuming consists of accepting the fact and inserting it into the session; the

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
-- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-Inserting-events-into-drools-fusion-stream-tp1746213p1750917.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users mailing list r

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
Thank you for your reply. I think I was heading into the wrong direction. Now when I've synchronized the function which is creating session, session is static and is only called once, and firing the rules it's working fine. I'm planning to use JMS wherein consumer will be syncronized. Is this the

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
Thank you for your reply. I think I was heading into the wrong direction. Now when I've synchronized the function which is creating session, session is static and is only called once, and firing the rules it's working fine. I'm planning to use JMS wherein consumer will be syncronized. Is this the

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Wolfgang Laun
On 22 October 2010 09:14, Ayush wrote: > > Thank you for your reply. > > I think I was heading into the wrong direction. Now when I've synchronized > the function which is creating session, session is static and is only > called > once, and firing the rules it's working fine. I'm planning to use

Re: [rules-users] Error Inserting events into drools fusion stream

2010-10-22 Thread Ayush
Thanks a lot Wolfgang for your prompt reply. I'm able to move forward now -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-Inserting-events-into-drools-fusion-stream-tp1746213p1751531.html Sent from the Drools - User mailing list archive at Nabble.com.

Re: [rules-users] Error Inserting events into drools fusion stream

2014-02-25 Thread xyz
How did you solve this issue. -- View this message in context: http://drools.46999.n3.nabble.com/Error-Inserting-events-into-drools-fusion-stream-tp1746213p4028304.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-use