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 8678621
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:46:10+00:00 2026-06-12T20:46:10+00:00

Right now we’re developing a big application, where the modules are deployed as single

  • 0

Right now we’re developing a big application, where the modules are deployed as single .EAR files (each containing a .WAR and a EJB .JAR).

We configure in GlassFish 3.1 the applications to have Single Sign On using JAAS. So we require to keep alive every web module session while the SSO session is alive.

An example could be: Modules A, B and C are deployed with a 10-minute session. The user signs on using A, then can navigate to B and C, and spend (let’s assume) 20 minutes on C.

The idea is that while the user is only using C, we must keep alive his session (including managed beans) on A and B.

What could help us to achieve this? an idea is to create a servlet on each module to touch the session (thus keeping it alive), and send asynchronous (one-way possibly?) requests to those servlets from the module the user is using, but it seems a little overkill to open HTTP connections (over TCP) each time the user do something. Maybe a polling could help here, but we would like to avoid this kind of communication.

Another idea is using a shared memory cache, and a cache listener to touch the other sessions, doing a lookup with the session id; could this do the trick with better performance?

We’re open to any ideas… except using another application servers (we must use OpenSource GlassFish – no Coherence*Web).

Thank you for your time.

  • 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-06-12T20:46:11+00:00Added an answer on June 12, 2026 at 8:46 pm

    Do you require JAAS? You can implement a solution using spring-security, and a backing redis cache for the sessions ids. so e.g. when user is logged in on A, a session-id is put into the redis cache, when the user navigates to B through a link that passes a session id as a query parameter, the spring security layer (on B) will make sure that the session-id is alive and valid in the redis cache. Redis has built-in support for expiring data

    This is a good article: http://www.infoq.com/minibooks/Identity-Management-Shoestring on building a Central Authentication Services (CAS).

    Hope this helps

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

Sidebar

Related Questions

Right now I have an upload field while uploads files to the server. The
Right now I have a script that will get the last five files in
Right now I am using sqlite within a ios application, and I want to
Right now I try to implement the services of my OSGi-application as ds. Unfortunately
Right now I'm working on an archive browsing application that lets users navigate through
Right now what it does is allows me to select files but I need
Right now I have an application that loads a bunch of thumbnail images into
Right now I am writing some Python code to deal with massive twitter files.
Right now I'm using the following command to compile a coffeescript file each time
Right now, I am developing two classes for interaction with a MySQL database -

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.