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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T06:12:16+00:00 2026-06-18T06:12:16+00:00

In our web application (in JBoss using Struts) we use sessions largely for security

  • 0

In our web application (in JBoss using Struts) we use sessions largely for security as well as to cache some data for a User. Thus, every user logged into the application has a session and different data cached in it.

Based on some parameter change, i want to change the cache of the subset of users who are logged in (i.e. have session)

Can this be achieved? I have not been able to find anything so far from general search.

  • 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-18T06:12:17+00:00Added an answer on June 18, 2026 at 6:12 am

    You can use a HttpAttributeListener

    a basic example here

    HttpSessionAttributeListener:

    The HttpSessionAttributeListener interface enables an object to
    monitor changes to the attribute lists of sessions within a given Web
    application. The HttpSessionAttributeListener in turn extends
    java.util.EventListener. The methods in it are

    • attributeAdded(HttpSessionBindingEvent se)- This is the notification that an attribute has been added to a session.
    • attributeRemoved(HttpSessionBindingEvent se)- This is the notification that an attribute has been removed from a session.
    • attributeReplaced(HttpSessionBindingEvent se)- This is the notification that an attribute has been replaced in a session.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our web application we want to get some data from a text file
In our web-application we manage our continuous integration using TeamCity. So far we have
We generate reports in our web application by querying our sql server for data
We need a special user control for our web application. It should ideally look
Our web application (.net/C#) formats currency amounts using amount.ToString(c), shown localized to a few
I have a web application that I deploy using JBoss 5.2. In order for
In our web application,we have do some ajax request,so we may meet the cross
I am using JBOSS Application Server on which our main project runs. On the
We need to display JBoss log files from within our web application. Is it
We're about to deploy a Java web application built using JBoss Seam as the

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.