title: How to terminate Database connections created using dynamic JDBC credentials?
body: <p>I followed the below article to create dynamic JDBC connection.</p>
  
  <p><a href="http://www.oracle.com/technetwork/developer-tools/jdev/dynamicjdbchowto-101755.html" rel="nofollow">How to support dynamic JDBC credentials</a></p>
  
  <p>I was able to do it properly and when a user try to login a JDBC connection created successfully with their credentials.</p>
  
  <p>But I also want these connections to terminate while the users logout. I am doing session.invalidate() during logout but its not terminating the database connections.</p>
  
  <p>The dynamic connections are retained even after the application is undeployed. They get removed only if I stop the web-logic server.
  The timeouts set for the application module are not applied to these connections. Please help me if there is a way to close these dynamic JDBC connection during logout.</p>
  
  <p>I am using JDeveloper 12.2.1</p>