Mondrian OLAP connection management
问题 What is the recommended pattern for managing Mondrian database connections? I am using Mondrian as a library in a Scala/Play Framework web application. For example: var connection try { connection = DriverManager.getConnection(connection_string).unwrap(classOf[OlapConnection]) val result = connection.createStatement.executeOlapQuery(mdx) // ... use the result ... } finally { if (connection) connection.close } Is calling close in a finally block the right approach? How do I configure a