- 
        1. Re: possible bad side effects from change to AbstractConnectionManagerjesper.pedersen Dec 7, 2012 7:47 AM (in response to mandrosen)First of all - you should be using a nightly snapshot. Then look into the <validation> element and provide the plugins needed (MySQL), and do <flush-strategy>IdleConnections</flush-strategy> If you still have errors after that I would need to see TRACE log from org.jboss.jca and your full configuration. 
- 
        2. Re: possible bad side effects from change to AbstractConnectionManagermandrosen Dec 7, 2012 10:47 AM (in response to jesper.pedersen)I will test it with the nightly snapshot, but I have been using the validation plugins and the flush strategy. I'll let you know what happens with the snapshot. 
- 
        3. Re: possible bad side effects from change to AbstractConnectionManagermandrosen Dec 7, 2012 11:50 AM (in response to jesper.pedersen)I am going to test with 1.0.13.Final, 1.1.0.Beta3, and then if those don't work, I can try the head version (is there a repository with nightly builds or should I just build it myself). My question is which version of jboss are those built against. When I used 1.0.13.Final, I am getting this error: Caused by: java.lang.ClassNotFoundException: org.jboss.jca.common.api.metadata.ds.DataSource$Tag from [Module "org.jboss.as.connector:main" from local module loader @538d7ace (roots: /usr/java/jboss/modules)] so I will update the org.jboss.as.connector module, but I want to make sure I am using the correct version. Thanks for your help. I really appreciate it. 
- 
        4. Re: possible bad side effects from change to AbstractConnectionManagerjesper.pedersen Dec 7, 2012 11:53 AM (in response to mandrosen)IronJacamar 1.1 is for EE 7. AS7/master already contains IJ 1.0.13... so you just need the latest nightly snapshot 
- 
        5. Re: possible bad side effects from change to AbstractConnectionManagermandrosen Dec 10, 2012 1:22 PM (in response to jesper.pedersen)I had the same issue with the latest jboss snapshot: jboss-as-7.2.0.Alpha1-SNAPSHOT The trace is attached. My datasource config: <datasource jta="true" jndi-name="java:jboss/datasources/atDS" pool-name="MySqlDS" enabled="true" spy="true" use-ccm="true"> <connection-url>jdbc:mysql://dbserv:3306/db</connection-url> <driver-class>com.mysql.jdbc.Driver</driver-class> <driver>mysql-connector-java-5.1.22-bin.jar</driver> <transaction-isolation>TRANSACTION_READ_COMMITTED</transaction-isolation> <pool> <min-pool-size>0</min-pool-size> <max-pool-size>1</max-pool-size> <prefill>true</prefill> <use-strict-min>true</use-strict-min> <flush-strategy>IdleConnections</flush-strategy> </pool> <security> <user-name>user</user-name> <password>passwd</password> </security> <validation> <valid-connection-checker class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLValidConnectionChecker"/> <stale-connection-checker class-name="org.jboss.jca.adatpers.jdbc.extensions.mysql.MySQLStaleConnectionChecker"/> <exception-sorter class-name="org.jboss.jca.adapters.jdbc.extensions.mysql.MySQLExceptionSorter"/> </validation> <timeout> <allocation-retry>3</allocation-retry> </timeout> </datasource> - 
            
                            
            tmp.log.zip 55.2 KB
 
- 
            
                            
            
- 
        6. Re: possible bad side effects from change to AbstractConnectionManagerjesper.pedersen Dec 13, 2012 10:35 AM (in response to mandrosen)I'm not seeing anything here. If you only have 1 connection available, then requests will timeout. 
- 
        7. Re: possible bad side effects from change to AbstractConnectionManagermandrosen Dec 13, 2012 1:13 PM (in response to jesper.pedersen)Thanks for looking into this. When you say the requests, are you referring to the requests for a connection? When mysql shows the connection as sleeping, but we still get the error, unable to retrieve managed connection, does that mean something is holding on to the connection? 
- 
        8. Re: possible bad side effects from change to AbstractConnectionManagerjesper.pedersen Dec 13, 2012 1:17 PM (in response to mandrosen)You have <max-pool-size> at 1 - it doesn't matter how many the connections the database is configured for. Your log shows that the app gives up after 30 seconds to get a connection, which is default. Your prefill at true doesn't do anything, since your <min-pool-size> is 0. http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html/deployment.html#deployingds_descriptor 
- 
        9. Re: possible bad side effects from change to AbstractConnectionManagermandrosen Dec 13, 2012 1:22 PM (in response to jesper.pedersen)Very true, the prefill is left over from other configs -- useless in this test. I did try increasing the blocking-timeout (default 30), but it just waits longer to timeout. It seems stable and working with the increased number of connections. I am curious about that one connection, but it's ok for now. Thanks for your help. 
 
    