<p> I think you could maintain a single kbase with a single kagent and then create a new ksession for each request.</p>
<p>Best,</p>
<p><blockquote type="cite">El sep 23, 2010 4:31 p.m., &quot;bbarani&quot; &lt;<a href="mailto:bbarani@gmail.com">bbarani@gmail.com</a>&gt; escribió:<br><br><br>
Hi,<br>
<br>
We have a java code which connects to guvnor and fires all the rules in a<br>
package and gets back the final decision from Guvnor.<br>
<br>
The code works fine for single request, if I send multiple request the code<br>
takes more time to return the results. I am just wondering if we are doing<br>
anything wrong which affects the response time for multiple request.<br>
<br>
This is what we are doing now for multiple request,<br>
<br>
Get multiple request in an request array object<br>
<br>
Iterate through each request object and fire all the rules with the<br>
parameters present in that request object and display the final decision for<br>
each request.<br>
<br>
For each request object we are invoking the function which creates a<br>
ruleagent (based on guvnor.properties file) and fires all the rules with<br>
corresponding request parameter and sends back the decision.<br>
<br>
I am thinking this might be the issue, due to the fact that we are creating<br>
new connection / rule agent everytime when we invoke the function and that<br>
in turn cause more time for returning the results back.<br>
<br>
I Just want to know if there is a way to just create a single session with<br>
Guvnor using rule agent and invoke all the rules multiple times based on the<br>
number of request and finally get all the decisions.<br>
<br>
<br>
Thanks,<br>
BB<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/Issue-in-sending-Multiple-request-to-Drools-Guvnor-package-tp1570016p1570016.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/Issue-in-sending-Multiple-request-to-Drools-Guvnor-package-tp1570016p1570016.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<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>
</font></blockquote></p>