title: Glassfish Datasource Connections
body: <p>We're using glassfish 3.1.2 and it seems very brittle in terms of maintaining datasource connection pools through a database server restart or a break in network connectivity with the database (even a slight one).   </p>
  
  <p>It doesn't seem like it's particularly adept and re-establishing those connections and moving on.   </p>
  
  <p>We're using com.mysql.jdbc.jdbc2.optional.MysqlDataSource.</p>
  
  <p>We're using connection validation.   </p>
  
  <p>Is there something else we're missing?   Does anyone else experience this?</p>