Can I see the connection pool size in Spring with a JNDI DataSource?
===

App setup: Spring+Hibernate+some JDBC. Running on some older JBoss (4.2). Connection pool is provided via JNDI by JBoss.

I was thinking is there a way to check how many "free" (not in use) database connections are there in the pool? I know I can do it programmatically via the MBean interface but wouldn't that couple the application to JBoss too much?