• 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
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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..
 
keep an eye out for scorpions and black widows. But the tiny ads are safe.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic