3 Replies Latest reply on Mar 25, 2008 3:58 PM by jacob.orshalick

    Conversation Timeout

    cremersstijn

      I want to call a method when the conversation timeouts,
      I've tried to use the @observer:


      @Observer("org.jboss.seam.conversationTimeout")
      public void conversationTimeout(){
           log.info("conversation timeout");
      }



      But this won't work, i have waited a long time without doing anything, but nothing happens.
      My timeout is set in the components.xml in the following way:


      <core:manager concurrent-request-timeout="500" 
         conversation-timeout="120000" 
         conversation-id-parameter="cid"/>
      



      Thanks....

        • 1. Re: Conversation Timeout

          Yes, you have to access the foreground conversation to timeout background conversations.

          • 2. Re: Conversation Timeout
            cremersstijn

            how can i do this?


            I don't understand it.


            But i've read in your book (JBoss SEAM 2E) that there are 2 types of timeouts, session and conversation.


            Is the session timeout this:


            @Observer("org.jboss.seam.postDestroyContext.SESSION")
            public void postDestroySession(){
                 log.info("post destory context session");
            }


            • 3. Re: Conversation Timeout

              Session timeout is performed by polling on the server side.  By observing this event you can find out when the session is being destroyed (which occurs when the server times out the session). 


              Conversation timeout is not a polling event.



              But i've read in your book (JBoss SEAM 2E) that there are 2 types of timeouts, session and conversation.

              Yes, these timeouts will be explained in-depth in the full release of these chapters (which should be out soon on Safari), but until then I would suggest reading: Setting the conversation-timeout in Seam, why it really does work.  This should clear up the difference between the two.


              Hope it helps.