Using a static map seems a lot simpler and clearer to me.
AFAIK this is how JBoss AS failover works too.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4001934#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...