[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Cluster-wide Session Access

armorris007 do-not-reply at jboss.com
Wed Jul 19 12:08:26 EDT 2006

I'm currently trying to find a way to gain access to a cluster-wide list of active Tomcat Sessions. This is proving very difficult.

I've looked at the possibility of using the HttpSessionListener interface but unfortunately that won't suffice - as it's not fail-safe when it comes to a node in a cluster unexpectedly going away.

The problem I'm trying to tackle is that of implementing a session-tracking licencing engine for our J2EE product. Essentially - I want to be able to read an attribute (that is set at login) from a session and count how many sessions have that attribute set.

Having scoured the JMX console for ways that existing JMX components get this information, it would appear that such information is available to:

The MBEAN registered under the jboss.web domain:

however, I can't for the life of me work out how to do a JNDI lookup to get access to that MBEAN - it doesn't appear to be registered in JNDI (when using the JNDIView component). 

However - the jmx-console itself can see the component fine - and can execute calls on it.

Can anyone help? Or advise an alternative solution to cluster-wide session access?

Many thanks,


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959202#3959202

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3959202

More information about the jboss-user mailing list