title: Dropwizard Session Clustering
body: <p>I need a way to share the session across different dropwizard web services. In Jetty there is a way to do it by using JDBCSessionIdManager and JDBCSessionManager (<a href="http://wiki.eclipse.org/Jetty/Tutorial/Session_Clustering" rel="nofollow">http://wiki.eclipse.org/Jetty/Tutorial/Session_Clustering</a>). </p>
  
  <p>The problem is that dropwizard (0.7.1) does not expose a reference of the org.eclipse.jetty.server.Server that is needed so there is no obvious way to do change the SessionManager and the SessionIdManager. 
  I've seen that the Server is created in io.dropwizard.cli.ServerCommand#run through a  io.dropwizard.server.ServerFactory but the reference in io.dropwizard.cli.ServerCommand#run is local so I can't even use reflection to get the reference that I want.</p>
  
  <p>What should I do in dropwizard to change SessionManager and the SessionIdManager?</p>
  
  <p>Thanks,
  <br>
  Alex</p>