Hibernate

Hi, all I am new to Hibernate and I am using Struts and Hibernate.. My Problem is such that .. I want to switch databases dynamically. In Short.. suppose there are two customers A and B when a logins I want to load "AAA" database and when B login i want to load his own database like.."BBB". please help me if any one know.....