Does Web Flow Persistence Context work with a Tomcat Managed DBCP?
Will a web flow that uses
Code:
<persistence-context/>
work if the database connection pool is manged by tomcat (in GlobalNamingResources of server.xml) and retrieved by spring using JNDI, or is it required that the dataSource be a spring managed bean of type
Code:
org.apache.commons.dbcp.BasicDataSource
?
I am currently using a Tomcat managed pool and after completion of every flow (after the commit), there is always one db connection that becomes unusable and eventually I run out of connections. I am trying to determine if I am not managing Transactions correctly or if Spring Web Flow might not work with a persistence-context unless it uses a spring managed dbcp.
Anyone know if this SHOULD work with Tomcat managed pool?