HttpSessionBindingListener to be exact. 
 
BTW: CurrentUsersMBean.java is not a Jboss or j2ee class either.  Hope this helps.
 
Jason
-----Original Message-----
From: Luttrell, Peter [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 08, 2002 4:14 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] User Monitoring

This sounds interesting. Presumably I can get the UserPrincipal somehow right?
 
Where do i get more info on HttpBindingListener? It doesn't appear to be a Jboss class, nor a j2ee class.
 
Did you mean HttpSessionListener?
 
thanks.
.peter
-----Original Message-----
From: Jason Westra [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 05, 2002 12:14 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] User Monitoring

You make the custom solution sound way too hard!  It is quite easy.
 
You need 2 classes.
 
1 Class implementing HttpBindingListener called MonitoredUser.java
1 MBean called CurrentUsersMBean.java, which holds a list of MonitoredUser objects representing currently logged in users.
 
When the user logs in, create a session, create and bind the MonitoredUser instance to the session, and add it to the CurrentUsersMBean list.
 
To see a list of currently logged in users, ask the CurrentUsersMBean for its list.
 
When the session times out, or the user logs off, the MonitoredUser.unbind() method is called.  At this time, remove the object from the CurrentUsersMBean list.
 
Jason
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Luttrell, Peter
Sent: Monday, November 04, 2002 5:02 PM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] User Monitoring

My sysadmin has one large grip with JBoss: There is no way to tell who is using a webapp at a particular time, which he claims is possible with Weblogic.
 
I'm using Jetty, if i turn on the metrics, i can ascertain how many sessions are active (not timed out). Does anyone know how i can figure out what the userPrincipal is for the httpsessions?
 
Or does anyone have any other ideas on how to monitor Who is using Jboss? Other then the obvious one, which is write a bunch of custom code that updates some custom monitor through filters or interceptors or manually?
 
thanks.
.peter
 
 
<as always ignore my firms silly warning below>



This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all information and reserve the right to publish or disclose any information you share with us.




This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all information and reserve the right to publish or disclose any information you share with us.

Reply via email to