File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes Who are logged in? - without spring security Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "Who are logged in? - without spring security" Watch "Who are logged in? - without spring security" New topic
Author

Who are logged in? - without spring security

Kovacs Antal
Greenhorn

Joined: May 17, 2010
Posts: 11
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..
 
 
subject: Who are logged in? - without spring security
 
Threads others viewed
application security vs container managed security and access to session object in bean
custom security and HttpSession access
Spring for enteprise class applications
Spring + Hibernate - EJB = ?
Equivalent of servlet init() in JSF
developer file tools