I have this in META-INF in my war:

<?xml version="1.0" encoding="UTF-8"?>
<resources>
        <Resource id="sportivityDS" type="javax.sql.DataSource">
          JdbcDriver org.postgresql.Driver
          JdbcUrl jdbc:postgresql://127.0.0.1:5432/sport
          JtaManaged true
          UserName zzz
          Password xxxx
          MaxActive                     100
          InitialSize                                   2
          MaxIdle                       25
          MinIdle                       2
          suspectTimeout                                60
          maxWait                                               10000
          TimeBetweenEvictionRunsMillis    60000
          minEvictableIdleTimeMillis       60000
          testOnBorrow                                  true
          validationInterval                    30000
          removeAbandoned                               true
          removeAbandonedTimeout                60
          logAbandoned                                  true
          abandonWhenPercentageFull             60
          NumTestsPerEvictionRun        2
          ValidationQuery               SELECT 1
     </Resource>
</resources>

I added few more attributes for production to the resource. When I start
Tomee I see:

WARNING: Property "suspectTimeout" not supported by sportDS
WARNING: Property "abandonWhenPercentageFull" not supported by sportDS
WARNING: Property "suspectTimeout" not supported by
WARNING: Property "validationInterval" not supported by 
WARNING: Property "abandonWhenPercentageFull" not supported by

Why are not these resource attributes getting picked up? Regular Tomcat pool
picks them up fine.



--
View this message in context: 
http://openejb.979440.n4.nabble.com/DB-pool-resource-Tomee-production-tp4656425.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Reply via email to