1 2 Previous Next 15 Replies Latest reply on Feb 11, 2012 4:04 PM by Mihovil Santic

    Connection pooling to datasource - AS7.1, connections are not released

    Mihovil Santic Newbie


      We have problem that connection pool (set by default to 20) is drained - we are left without connections, because they are not released anywhere...


      In persistance.xml, we have defined jta data source:


      <persistence-unit name="LarisModel" transaction-type="JTA">



      We access this datasource in EJB via:



          private EntityManager em;


      .. defined in jboss standalone.xml.


      This works but problem is that connection is not released to available pool of connections when log out from application.


      Our log out is done like this:




      and then redirected to login form.




        1 2 Previous Next