Re: [Acegisecurity-developer] how to get online users list

2007-11-27 Thread Axel Mendoza Pupo
You don't need declare the sessionRegistry as a listener in your web.xml
this class effectly is a listener but in acegi documentation always
appear declared as a bean in the security context, works as a listener
too but you can inject into others beans. So declare only one time and
remove the listener, just handle as a bean.

-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] how to get online users list

2007-11-11 Thread Mohammad Shamsi
do you mean that i most add this bean in my acegi contex ?
bean id=sessionRegistry
class=org.acegisecurity.concurrent.SessionRegistryImpl/

if i add this class as a listener  in my web.xml, then during
application startup an instance of this class will be created. now if
i add this class as a bean in my acegi context, then spring have to
instantiate an object too. i don't know what happend in this case ? i
have one instance or two 



On Nov 11, 2007 5:06 AM, Axel Mendoza Pupo [EMAIL PROTECTED] wrote:
 in your acegi context search for the bean :

 with this you can declare
 SessionRegistry sessions
 and inject the sessionRegistry bean to your class in the bean context so you 
 can access to the real session registry by this reference


 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Home: http://acegisecurity.org
 Acegisecurity-developer mailing list
 Acegisecurity-developer@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer





-- 
sincerely yours
M. H. Shamsi

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] how to get online users list from acegi ???? (Ray Krueger)

2007-11-10 Thread Luke Taylor
Please use the support forums for user questions

http://forum.springframework.org/showthread.php?t=45907

Mohammad Shamsi wrote:
 Thanks Axel, this is exactly what i looking for.
 
 sorry for bothering you, but another question :
 
 SessionRegistry is an interface, in it have an implementation
 SessionRegistryImpl, this calss is an ApplicationListener,
 
 I don't know how to access to the instantiated object of this class
 from my code.
 this object was instantiated during application startup.
 
 


-- 
 Luke Taylor.  Monkey Machine Ltd.
 PGP Key ID: 0x57E9523Chttp://www.monkeymachine.ltd.uk


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] how to get online users list from acegi ????

2007-11-08 Thread Mohammad Shamsi
hi all,

yes scott, i want get a list of users currently on my system
i saw the code, i wrote something like it, but i thought that acegi
has some feature for this



thank you.

On Nov 8, 2007 2:00 AM, Scott McCrory [EMAIL PROTECTED] wrote:
 Or does he mean to get a list of users currently on his system (i.e.
 with active HTTP Sessions)?

 If so, Matt Raible wrote a very nice UserCounterListener that did the
 trick nicely for me:
 http://raibledesigns.com/downloads/appfuse/api/org/appfuse/webapp/listener/UserCounterListener.java.html

 Scott


 Ray Krueger wrote:
  The user forum is at http://forum.springframework.org/forumdisplay.php?f=33
 
  Is that what you mean?
 
  On 11/7/07, Mohammad Shamsi [EMAIL PROTECTED] wrote:
 
  hi all,
 
  i used acegi in my spring based Java EE web application.
 
  i want to access online users list,
 
  anyone know how ? please help me...
  Edit/Delete Message
 
  --
  sincerely yours
  M. H. Shamsi
 


 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now  http://get.splunk.com/
 ___
 Home: http://acegisecurity.org
 Acegisecurity-developer mailing list
 Acegisecurity-developer@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer




-- 
sincerely yours
M. H. Shamsi

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] how to get online users list from acegi ???? (Ray Krueger)

2007-11-08 Thread Axel Mendoza Pupo
String users [] = (String[])SessionRegistry.getAllPrincipals();
List online;
for(int i=0;iusers.length;i++)
if(getAllSessions(users[i],
Boolean.FALSE)!=null)
online.add(users[i]);

this is how I get online users

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer


Re: [Acegisecurity-developer] how to get online users list from acegi ????

2007-11-07 Thread Scott McCrory
Or does he mean to get a list of users currently on his system (i.e. 
with active HTTP Sessions)?

If so, Matt Raible wrote a very nice UserCounterListener that did the 
trick nicely for me:
http://raibledesigns.com/downloads/appfuse/api/org/appfuse/webapp/listener/UserCounterListener.java.html

Scott

Ray Krueger wrote:
 The user forum is at http://forum.springframework.org/forumdisplay.php?f=33

 Is that what you mean?

 On 11/7/07, Mohammad Shamsi [EMAIL PROTECTED] wrote:
   
 hi all,

 i used acegi in my spring based Java EE web application.

 i want to access online users list,

 anyone know how ? please help me...
 Edit/Delete Message

 --
 sincerely yours
 M. H. Shamsi
 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
Acegisecurity-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer