title: Persistent Sessions with JDBC and Tomcat
body: <p>We have a cluster of Tomcat servers that share a common web server running mod_jk. We currently use sticky sessions to take care of session handling, but we would like to move to JDBC session sharing. Does anyone have a good resource or step-by-step solution to deal with this?</p>
  
  <p>I was not sure if this question was meant for stackoverflow, serverfault, or DBA, but here it is. :)</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I think the content of my question must be confusing. The sessions to which I am referring are user sessions (JSESSIONID), not connections to the database. What I want to do is use the database to handle the user sessions so that when one server in the cluster goes down, the transition to another server is seamless to the user. Right now, the user is logged out when an error on the server occurs.</p>