• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Who are logged in? - without spring security

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I would like to get the list of logged in users in my web application running on a (Weblogic 10.3)
I have to do this with Spring 2.0.5 and without using Spring Security for some reason.. :-(

I'd like to ask if it is ok to achieve this by defining a DIYSessionRegistry scope="singleton" bean and a session scope DIYSession bean. The latter would be grabbed on every request, because as far as I know session scope beans are always lazy initialized. These DIYSession beans would register themselves into the DIYSessionRegistry on creation and would unregister themselves when destroyed.

Do you think this approach is ok? I don't if it would work in a cluster as well..
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic