title: Database Fail Over in Jboss Data sources
body: <p>In JBoss data source how can I give multiple connection strings for database fail over in which I want .</p>
  
  <p>There will be two Mysql db with same tables say DB1 and DB2. I want to insert data to DB1, if DB1 is down, then I need to insert it into DB2. During inserting into DB2 if the DB1 comes up I need to insert rest of the data into DB1. How can I configure this in my JBoss?</p>