title: MongoDB Java Driver database connection pooling with Tomcat
body: <p>According to the MongoDB Java driver documentation, database connection pooling is magically handled by the Mongo object.</p>
  
  <p>Does this mean it is safe to create an instance of a singleton object which connects to the MongoDB database in a servlet that will run when Tomcat starts and not worry about configuring database connection pooling in Tomcat via the context.xml?</p>
  
  <p>Is this the right way to think about it? Am I misunderstanding some basic concept of Tomcat / database connection pooling in general?</p>