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.<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;">
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 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;">
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">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>