-
1. Re: Can i get all users in the system?
ragavgomatam Apr 28, 2008 9:06 PM (in response to avihaimar)try DWR reverse ajax
-
2. Re: Can i get all users in the system?
avihaimar Apr 29, 2008 9:36 AM (in response to avihaimar)what???
I am working with Jboss4.2 and not use any web -
3. Re: Can i get all users in the system?
ragavgomatam Apr 29, 2008 10:31 AM (in response to avihaimar)How are your users logging in to jboss ? Web or java ?
-
4. Re: Can i get all users in the system?
avihaimar Apr 29, 2008 10:51 AM (in response to avihaimar)Using java.
i write custom login module. -
5. Re: Can i get all users in the system?
ragavgomatam Apr 29, 2008 11:44 AM (in response to avihaimar)well then, can you use the database ? As a user logs in, put his userId in the db , along with a timestamp may be...When user hits the LoginContext.logout(), you can clear it out if you want....
-
6. Re: Can i get all users in the system?
avihaimar Apr 29, 2008 11:52 AM (in response to avihaimar)The problem with this is in case that the user dosnt call to logout, like in case that the client crash or the user wasnt active for a while.
Does JBoss have a list of its own? -
7. Re: Can i get all users in the system?
ragavgomatam Apr 29, 2008 11:59 AM (in response to avihaimar)So then do you want to mimic a HttpSession from a java client ? Like time out etc ?
-
8. Re: Can i get all users in the system?
avihaimar Apr 29, 2008 12:05 PM (in response to avihaimar)yep, something like this
-
9. Re: Can i get all users in the system?
ragavgomatam Apr 29, 2008 12:15 PM (in response to avihaimar)Problem is even if you can detect a time out( by running a seperate thread etc) , how will you log them out ? Unless Client calls LoginContext.logout(), they will never log out. Also you can't force a log out, unless jboss provides some internal hooks that allows you to flush the credentials
-
10. Re: Can i get all users in the system?
avihaimar Apr 29, 2008 12:39 PM (in response to avihaimar)This is the point.
I want to be able to have kind of session and to logout after XXX minutes of inactive. -
11. Re: Can i get all users in the system?
ragavgomatam Apr 29, 2008 2:39 PM (in response to avihaimar)I was digging around the jboss src code. Can you get hold of SecurityAssociationActions.clear() ? If yes, then probably you can call clear() on that class when you sense a time-out. I haven't tried it though