title: Timeout-Setting for Stateful Session Bean?
body: <p>For my JavaScript web application the backend is a JBoss application server.<br>
  The JavaScript frontend contacts ALWAYS ONE servlet (front controller).<br>
  The servlet makes ONE lookup (plus "narrow") at login time.<br>
  This lookup is a lookup for a SFSB (Stateful Session Bean).<br>
  The result from this lookup is stored in an HttpSession object.<br>
  All subsequent communication between servlet and SFSB is made by this
  stored remote object.  </p>
  
  <p>The session timeout (for a HttpSession object) from JBossWeb (Tomcat) is 30 minutes.<br>
  So every time, when there is NO activity on the frontend (> 30 minutes), the
  session expires, the session with everything in it - also the remote interface
  of the SFSB - is deleted.</p>
  
  <p>In the meantime the SFSB is passivated to disk
  (deploy/ejb3-interceptors-aop.xml -> idleTimeoutSeconds=300).</p>
  
  <p>The default timeout for my SFSB is infinite (removalTimeoutSeconds=0). So the default is that no passivated sfsb is automatically removed.</p>
  
  <p>Is there actually any reason to not set the SFSB timeout (removalTimeoutSeconds) to 30 minutes (30*60) in my case (same as session timeout)?</p>