• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Session Management

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to write a class that manages user sessions in an application server (Oracle 9iAS). In the Servlet 2.1 API, you could use something like
obj.getIds() or obj.getSession("??? session id ???")
Unfortunately this API is depricated. Is it possible to do something similar in Servlet 2.3? How can one generally manage user sessions at an application scope level taking into consideration that some app server implementations maintain separate state (at application scope level) on the different machines in a cluster.
 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i dont know why you wanted to do this, but you could use a sessionlistener. Add the sessionid to a hashmap (whatever collection) and add the hashmap to the context.
i am not sure this answers your question though.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Let's move this to the Oracle OAS forum and see if they know if the product offers session management functionality.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes 9ias handles User sessions, so you wouldn't want to go through all that trouble of reinventing the wheel would you?
Mark
reply
    Bookmark Topic Watch Topic
  • New Topic