Logging Abandoned Connection

chege <[email protected]>
Newsgroups gmane.comp.java.openejb.user
Message-ID <39e5ea5826dac148025a5d8b179eb891481e42d7.camel__1350.32134582929$1695799167$gmane$org@programmer.net>
Hi,

I using tomee 8.0.14. I want to see which code is not closing
connections. I have set logAbandoned true in my datasource.
However I don't see the any abandoned connection logged.


 <Resource id="jdbc/abc" type="DataSource">

      DataSourceCreator tomcat
      JdbcDriver org.postgresql.Driver
      JdbcUrl jdbc:postgresql://localhost:5432/abc
       username ***
      password ***
      JtaManaged true
      InitialSize 10
      MaxActive 50
      MaxIdle 25
      MinIdle 10
      TestOnBorrow true
      TestWhileIdle true
      ValidationQuery select 1
      logAbandoned true
    </Resource>


What else do I need to do to see connection leaks logged?


Chege.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.