I am using seam 2.2.1.CR2 and jboss 5.1.GA.
I want to use Natural conversations ID parameter in my project.
So i defined multiple conversation natural names in my pages.xml file as like
<conversation name="bookID" parameter-name="bId" parameter-value="#{manageBookAction.bookID }"/>
<conversation name="authorId" parameter-name="aId" parameter-value="#{manageAutherAction.authorId}"/>
Then I used this conversation names in my page xml as like
book.page.xml
<page no-conversation-view-id="/home.xhtml" conversation="bookID">
<begin-conversation join="true" flush-mode="manual"/>
<action execute="#{bookManager.init}" on-postback="false" />
<navigation>
<rule if-outcome="HOME">
<end-conversation before-redirect="true" />
<redirect view-id="/home.xhtml" />
</rule>
</navigation>
</page>
auther.page.xml
<page no-conversation-view-id="/home.xhtml" conversation="authorId">
<begin-conversation join="true" flush-mode="manual"/>
<action execute="#{autherManager.init}" on-postback="false" />
<navigation>
<rule if-outcome="HOME">
<end-conversation before-redirect="true" />
<redirect view-id="/home.xhtml" />
</rule>
</navigation>
</page>
so the Long Running Conversation(LRC) has created, when i navigate the book.xhtml and auther.xhtml pages. I can see the appropriate conversation IDS when i visit those pages. My session expired time 20 min and my conversation time out is 2 min.
As per my understanding the the foreground LRC is destroy by invoking an end conversation method or after Session expired. But the background conversation destroyed only after conversation timeout expired.
I am using the work space switcher in project, so i can see all LRC's in work space switcher dropdown.
But the problem is the foreground LRU is destroyed after 2 min, (which is only applicable for background conversation.)
Why the foreground LRC is destroyed if it is ideal for 2 min?