if (!DB.jndiJdbcConnAvailable_?) { val vendor = new StandardDBVendor(Props.get("db.driver") openOr "org.h2.Driver", Props.get("db.url") openOr "jdbc:h2:lift_proto.db;AUTO_SERVER=TRUE", Props.get("db.user"), Props.get("db.password"))
LiftRules.unloadHooks.append(vendor.closeAllConnections_! _)
DB.defineConnectionManager(DefaultConnectionIdentifier, vendor) }
new javax.naming.InitialContext().addToEnvironment("lift", DefaultMongoIdentifier.jndiName)
"net.liftweb" %% "lift-mapper" % liftVersion % "compile"
// Make a transaction span the whole HTTP request S.addAround(DB.buildLoanWrapper)