Yes it&#39;s clear. But you are hiding a stateful session behind a stateless service. It&#39;s a common problem. You need to fix that.<br><br><div class="gmail_quote">2010/8/20 tom ska <span dir="ltr">&lt;<a href="mailto:tiberium.linux@gmail.com">tiberium.linux@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Well, I will explain my architecture as well as I can:<br><br>- I created &quot;Dynamic Web Project&quot; with Eclipse based on AXIS1.4.1<br>
- I also added Drools Runtime to a project<br>- In class I have  KnowledgeBase kbase attribute<br>
- Each time I use fn_Conclude function, I create new StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession() and use fireAllRules method.<br><br>I understand, that user who uses fn_Conclude will get his own results, but I don&#39;t get how using StatefulKnowledgeSession can I guarantee that user, who added his facts will get results only from facts he added. I see problem in connecting facts to user,but meybe that&#39;s not good point of view. Facts adding is done by ksession object (each user has his own), but I want to have this web service with states... Then user can add his own facts, than do something else, then process only his facts. Between adding and processing, I want other user to do this same. I want Web Service to wait for each user after adding by him some facts.<br>

<br>I hope, it is clear for You (my english... :/ )<br><br>regards,<br>tom.<br><br><br><div class="gmail_quote">2010/8/20 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com" target="_blank">salaboy@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">It depends on how are you exposing web services or the component behind those web services..<br>

If you use a Stateful Session Bean, this component will do all the work for you. But if your services are stateless by nature, you need to implement the mechanism. You can implement this mechanism in two ways: In messages (adding a session id that goes and come back with the response) or in server side with a client id.<div>

<div></div><div><br>
<br><div class="gmail_quote">2010/8/20 tom ska <span dir="ltr">&lt;<a href="mailto:tiberium.linux@gmail.com" target="_blank">tiberium.linux@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


Thanks Esteban. I thought it could be a solution too, but I am not experienced (and my knowledge is not big either) in solving such a problems.<br><br>If I would do, like You said - am I to write all communication between web service and client too? In web programming with browser, I have cookies. In them, I could keep some session ID. But using SOAP, I have to write this mechanisms alone, yes? Can AXIS do it for me? Or some other tool?<br>



<br>regards,<br>tom.<br><br><br><div class="gmail_quote">2010/8/20 Esteban Aliverti <span dir="ltr">&lt;<a href="mailto:esteban.aliverti@gmail.com" target="_blank">esteban.aliverti@gmail.com</a>&gt;</span><div><div></div>


<div><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
A basic solution could be to have each user identified with an unique id. Then, in the server side you could have different ksessions (and not kbases) for each user.<div>

<br></div><div>Best,</div><br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>- Developer @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com </a><br>- Blog @ <a href="http://ilesteban.wordpress.com" target="_blank">http://ilesteban.wordpress.com</a><br>






<br><br><div class="gmail_quote">2010/8/20 tom ska <span dir="ltr">&lt;<a href="mailto:tiberium.linux@gmail.com" target="_blank">tiberium.linux@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">



<div><div></div><div>

Hi,<br>what I have is SOAP Web Service with two methods: fn_AddFacts, and fn_Conclude. I defined special XML implementation to send various fact&#39;s types via SOAP. Model is defined in DRL/Guvnor - and rules too.<br><br>






So now, I can add some facts (web service creates them using Drools &quot;reflection&quot; API) to knowledge base. And then use fn_Conclude method, to fire &quot;fireAllRules&quot; method and get response with results. But.....<br>






<br>What if now I have 100 users, and I don&#39;t want their&#39;s facts to interfere each other? I want, to use Drools to conclude for different users. I want to use this same rules, but on different knowledge bases (each user has own knowledge base of his facts).<br>






<br>Please help me, how to solve this problem... I am new in JAVA EE, and I don&#39;t understand some elementary issues well. (But I am trying to understand them :D )<br><br>regards,<br><font color="#888888">tom.<br>
</font><br></div></div><div>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><br>


 - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>
</font><br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div></div></div><br>
<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br>
 - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>