You should be able to get the domain name in use using
FacesContext.getCurrentInstance().getExternalContext().get...
You can then use this to know which site the user is visiting for your login.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123989#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...