Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6794199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:11:34+00:00 2026-05-26T18:11:34+00:00

Working in JBoss AS7, using Conversation Scope to manage the user’s interactions within a

  • 0

Working in JBoss AS7, using Conversation Scope to manage the user’s interactions within a browser tab.

I note that my pages get ?cid parameters appended. This is great – until the user bookmarks the page then tries to return to it! The Conversation Filter gives a “No such conversation” message.

Is there a better way of managing conversations? Perhaps an implementation or a switch to make it use hidden fields (with appropriate care in AJAX)? Alternatively I’ll have to start trying to intercept the Conversation Exception or modify the filter!

Thanks
– Richard

Further:

I’m intercepting the BeforeRestoreView event for other purpose (login handling mainly). You’d think this would work:

/**
 * @return true if there is no valid Conversation context.
 */
private boolean conversationNotActive()
{
    Context conversationContext = m_beanManager.getContext(ConversationScoped.class);
    return !conversationContext.isActive();
}

But I can’t get the context to ask if if it’s active! Will just throw a Try-Catch in for now.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:11:35+00:00Added an answer on May 26, 2026 at 6:11 pm

    We now take a two pronged approach.

    A quite complex conversation manager detects a bad conversation Id and takes appropriate action. It responds currently to the After Restore View event. I’d like to move it earlier but am having problems deriving the view ID at this stage. I’ve written a JSF to CDI bridge to pass the events to CDI. SeamFaces would do the same, but proved too heavyweight for us.

    For a normal GET the Conversation Manager redirects to self without the cid parameter in order to cause a new conversation to be started. For a postback it returns an HTTP 410 error. The detection of dead conversation is as above. We could use a more random conversation Id when we create conversations to try to prevent collision if an ID is reused.

    The Conversation Manager will also start a conversation depending on metadata it holds about the pages. (All pages under /forms/ require a conversation in our application). It uses redirect when it does this to ensure that the CID parameter is everywhere it needs to be. This may become unnecessary if I can solve the problem of getting the form ID before RestoreView phase.

    We use the browser history API to remove the cid from the user’s browser URL window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on Jboss 4.05 , I have an xsd file that was
I am using JBoss Seam and working with transactions. I have 2 methods with
I am using a single JBoss deploy directory for multiple J2EE projects that I'm
I'm working on a project where I am using JBoss Tools to reverse engineer
I'm working on a project that is going to make heavy use of JBoss
Running JBoss 4.2.3.GA and trying to deploy a WAR that is using Spring/Hibernate/JPA. I'm
I'm having a bit of a problem with getting JBoss working across networks. As
Is there a working JPA 2 implementation for JBoss server? Or maybe there is
I am working on writing a Highly Available agent for JBoss Application Server to
My organization is working on building RESTful webservices on JBoss appserver. The QA team

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.