1 Reply Latest reply on May 7, 2008 2:15 PM by Pete Muir

    Questions about Timeouts

    Hans Schlegel Newbie

      Hi,


      I did some tests about the best timeout strategy for my stateful beans, sessions and conversations.


      For this purpose I have switched the conversation timeout to 1   minute. Doing this, I noticed that when I use a link or button with property immediate set to true - after the conversation has timed out - the message org.jboss.seam.NoConversation is not shown and I'm not redirected to the no-conversation-view-id.


      But if I use a normal button (immediate false) the redirect  works and the message is shown.

      Is this behavior correct ?


      Second question:


      When I use

      @End(beforeRedirect=true)

      the destroy and remove-method(s) are invoked but some entries of the destroyed conversation are still visible in the context-map - Contexts.getConversationContext().


      When are this entries removed from the context-map? only if the session expires?


      thx in advance!

        • 1. Re: Questions about Timeouts
          Pete Muir Master

          Hans Schlegel wrote on Apr 18, 2008 04:16 PM:


          Hi,

          I did some tests about the best timeout strategy for my stateful beans, sessions and conversations.

          For this purpose I have switched the conversation timeout to 1   minute. Doing this, I noticed that when I use a link or button with property immediate set to true - after the conversation has timed out - the message org.jboss.seam.NoConversation is not shown and I'm not redirected to the no-conversation-view-id.

          But if I use a normal button (immediate false) the redirect  works and the message is shown.

          Is this behavior correct ?


          Probably not, file a JIRA issue.


          Second question:



          When are this entries removed from the context-map? only if the session expires?


          Should be when the request completes.