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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:07:31+00:00 2026-05-17T01:07:31+00:00

I need a mechanism to read session state from a Java class, without having

  • 0

I need a mechanism to read session state from a Java class, without having to pass any arguments (including HttpRequest) to the class. The reason is that the class is 1-3 calls away from the servlet and i dont want to pollute the method argument list with an extra arg for every call.
I basically have the same prob of these guys:
http://forums.sun.com/thread.jspa?threadID=5124189

For which apparently Java does not have a solution currently..

Cheers

  • 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-17T01:07:32+00:00Added an answer on May 17, 2026 at 1:07 am

    The tempting mechanism is to use ThreadLocal storage, but in some App Servers this is dangerous – the App Server may use pools of Threads and a single request may be processed by different threads at different points.

    Some App Servers (I know WebSphere does) offer a specific API for this purpose. In WAS it’s a UserWorkArea. See here for a reference, a little way down the article.

    I’m not aware of a portable solution to this problem.

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

Sidebar

Related Questions

I need to read from NetworkStream which would send data randomly and the size
I have created an asynchronous server that can read in messages from any number
I need an efficient mechanism for detecting changes to the DOM. Preferably cross-browser, but
I need to design a translation mechanism/strategy for the static text in my (scalable)
I need to implement some form of communication mechanism in my application, to send
I need to find ways to add retry mechanism to my DB calls in
I need to implement a very specific demo mechanism. It must not expire after
I am learning and using Web API and need to implement following Authentication mechanism
BeautifulSoup newbe... Need help Here is the code sample... from mechanize import Browser from
Here is something I need to accomplish: WPF datagrid display/bind data from SQL through

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.