shawnmckinney/fortressdemo2 — pull request #1 by johnpfield (2014-08-27 16:31:52+00:00)
Title: Updated the ConnectionFactory class. Used mybatis-spring integration com...

...ponent to create a CF/Spring-compatible SqlSessionFactory bean.

This pull request contains the changes necessary to deploy the FortressDemo2 application into Cloud Foundry. Essentially, the requirement was to make the JDBC DataSource configuration explicit in the Spring applicationContext.xml. The only change to the Java code is in the ConnectionFactory class. The static initializer that bootstrapped the sqlSessionFactory has been obviated by some new Spring beans and a component scan. These changes are believed to be completely back-compatible, and the application may still be deployed in a standalone Tomcat server.