title: multiple hibernate database connections fail
body: <p>I have a java web application that needs to control multiple MySQL databases (same schema) at the same time. </p>
  
  <p>I’m using Tomcat as a web container and hibernate. Connecting up to 3 databases works fine for both reading and writing to the databases. </p>
  
  <p>As soon as I attach the 4th database and write to this database the connection gets lost. I think that this is because of some limitation somewhere but I don’t have the slightest idea what and where. </p>
  
  <p>I would appreciate any help on this.</p>