<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2>Hi Nicolas,<br><br>It's good to see someone on the other side of the world using Tohu :-)<br><br>Tohu requires that you use the stateful session because only changes are sent back and forth between the client and server, and so that state needs to be maintained on the server.&nbsp; Stateless would be useful for a scenario where the rules are just doing some sort of one-off calculation based on the inputs provided.<br><br>Michael will need to answer re whether the execution server is able to run 2 agents simultaneously and how to to that.&nbsp; In the meantime, you could work around this problem by creating a separate war file for each and deploying them both to your app server.&nbsp; I have had a number of Tohu applications running simultaneously this way, which is exactly what you need for use within a portal.<br><br>Regards, Damon<br><br><div><br></div><font color="#990099">-----tohu-users-bounces@lists.jboss.org wrote: -----<br><br></font><blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px; border-left: 2px solid #000000; margin-right: 0px;">To: tohu-users@lists.jboss.org<br>From: Nicolas Martignole &lt;nicolas@touilleur-express.fr&gt;<br>Sent by: tohu-users-bounces@lists.jboss.org<br>Date: 02/27/2010 05:42AM<br>Subject: [tohu-users] Stateless/stateful servlet in Tohu<br><br>Hi Michael<br><br>JBoss Tohu is really a great project. I worked on a Grails similar project<br>few months ago, and I was really happy to discover Tohu later.<br><br>My first question is about the Stateless/stateful URL and Servlet in Tohu implemented in Scala. <br><br>I understood how to close a session with the URI and dispose-session<br>in stateful mode. However, and because I'm a beginner with Scala,<br>what are the main differences between the stateless and the stateful servlet <br>
in JBoss Tohu ? <br><br>My Portlet has 2 view modes : normal and maximized. Each view mode<br>is in fact a simple JSP. I oberved that if I use the stateful mode, and <br>I try to load 2 separates context/scenarion (with /stateful/sample1 and /stateful/sample2)<br>
then the 2nd state is never loaded. <br><br>I'd like to understand a little bit more this part of Tohu<br><br>Thanks for your help, and for the great work<br><br>Nicolas<br><br><br>
<font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>tohu-users mailing list<br>tohu-users@lists.jboss.org<br><a href="https://lists.jboss.org/mailman/listinfo/tohu-users">https://lists.jboss.org/mailman/listinfo/tohu-users</a><br></font>
</blockquote><br></FONT>
Attention:
This email may contain information intended for the sole use of
the original recipient. Please respect this when sharing or
disclosing this email's contents with any third party. If you
believe you have received this email in error, please delete it
and notify the sender or postmaster@solnetsolutions.co.nz as
soon as possible. The content of this email does not necessarily
reflect the views of Solnet Solutions Ltd.