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

  • Home
  • SEARCH
  • 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 7593527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:11:31+00:00 2026-05-30T21:11:31+00:00

I have a JSF 2.0 application(App#1) that has a managed Session Scoped bean that

  • 0

I have a JSF 2.0 application(App#1) that has a managed Session Scoped bean that does some business logic like validation etc. After the Continue button is clicked, another plain html form page is shown to the User and clicking on Submit button on this page will submit the form to a different application (App#2). After App#2 does it’s job, the User is shown a page from App#3. Please note that all of this happens in the SAME browser tab.

In the App#3 (which is also a JSF 2.0 application), I would like to remove the App#1 ‘s session scoped bean. How do I do that? I tried the below options, but none of them seem to work.

//First approach
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("app1Bean");

I am getting null for the above line of code

//second approach
HttpSession session = (HttpSession) FacesContext.getCurrentInstance()
        .getExternalContext().getSession(true);
session.removeAttribute("app1Bean");

Null here too.

  • 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-30T21:11:33+00:00Added an answer on May 30, 2026 at 9:11 pm

    By default, multiple applications which run on the same server do not share the same session. The server can however be configured to do so. How exactly to do that depends on the server make/version. Consult your server admin for details.

    If changing the server configuration is not an option, then your best bet is to store the information which you stored in session in a shared datasource (a SQL database, for example) instead. This way the last application has just to remove or manipulate the information in the datasource and you don’t need to fiddle with the session scope anymore.

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

Sidebar

Related Questions

I have a JSF application that makes much use of session-scoped variables. A new
I have a JSF application that uses mostly Richfaces. I would like to introduce
I have a (JSF 2.0/ Primefaces 2.2RC-SNAPSHOT) app that has <p:layout> I use a
I have a JSF 2.0 application that I would like to start adding validators
I have a JSF 2.0 application running on GlassFish v3. It has EJBs that
I have some problem's with a simple application in JSF 2.0. I try to
We have JSF web application that generates XLS file and gives user link to
I have a small JSF application where the user is required to enter some
i have a jsf application running on tomcat 6.0 and somewhere in the app
Here is my scenario: I have my-jsf-app.war (JSF 1.2 application) and daos-and-entities.har (Hibernate 3.3.1)

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.