The attached patch is a first step aimed at enabling TC's SingleSignOn function to work across a cluster. It includes the following: 1) Interface SSOClusterManager, which should be implemented by a class that provides SSO support across a cluster. 2) Changes to SingleSignOn (and related classes) to add an MBean attribute for specifying an implementation of SSOClusterManager to use. If an SSOClusterManager is set, invokes it when changes are made to the SSO entries on the local cluster node or if the cluster needs to be queried for a non- local SSO. 3) An abstract base implementation of SSOClusterManager that concrete subclasses can build upon. FYI, I have also attached a concrete implementation, a JBossSSOClusterManager. It uses the JBoss TreeCache to communicate SSO changes across the cluster. I've tested this in the JBoss/Tomcat integration. I know you can't use TreeCache in TC because of license issues, but thought you might be interested in a concrete implementation. Sorry, I haven't had a chance to look into how Tomcat's own cluster communication works. If you're interested in this patch I can look into what it would take to implement a TC-only version.
Created attachment 11041 [details] proposed patch
Created attachment 11042 [details] SSOClusterManager implementation for JBoss
I had started reworking the code, but you were faster. So now I think only an extended valve is needed, but it will obviously go in the JBoss repository.
I can add it to my todo list, this should be very simple to implement into Tomcat clustering as well. I'm not biased like Remy ;-) to put it into JBoss, he he he
Ping to Filip: still feel like to doing this one?
I just added it to the todo list, but no I have no timeframe mind of when this could be reality
This Tomcat 5 enhancement request has been moved to Tomcat 7 (the latest version) since Tomcat 5 development is limited and focussed on bugs and security issues whereas Tomcat 7 is still seeing new feature development.
This has largely been implemented (see the duplicate). Just awiting feedback beforeback-porting it to 7.0.x. *** This bug has been marked as a duplicate of bug 57338 ***