DBCP, JDBC4 and createArrayOf

2009-06-04 Thread Shakil Shaikh

Hi,

I wish to use the DBCP 1.2.2 in a project which requires some JDBC4
functionality, namely createArrayOf of the the Connection interface. Some
questions:

1) Possibly in only my  project, I see that 1.2.2 uses a JDBC4Connection
under the hood. Is there a way to get direct access to one of the pooled
connections?

2) I believe that 1.3 has support for createArrayOf. I've considered using a
1.3 build but can't find a nightly build (they're dated from 2007). Would it
be a good idea to use this unreleased version?

Thanks

Shak



-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org



Re: DBCP, JDBC4 and createArrayOf

2009-06-04 Thread Mark Thomas
Shakil Shaikh wrote:
 Hi,
 
 I wish to use the DBCP 1.2.2 in a project which requires some JDBC4
 functionality, namely createArrayOf of the the Connection interface. Some
 questions:
 
 1) Possibly in only my  project, I see that 1.2.2 uses a JDBC4Connection
 under the hood. Is there a way to get direct access to one of the pooled
 connections?

Yes. Look for accessToUnderlyingConnectionAllowed

 2) I believe that 1.3 has support for createArrayOf. I've considered
 using a
 1.3 build but can't find a nightly build (they're dated from 2007).
 Would it
 be a good idea to use this unreleased version?

You would have to build that yourself.

Is it a good idea? YMMV. Test it and see. If it works, great. If not,
let us know where it is broken.

Mark



-
To unsubscribe, e-mail: user-unsubscr...@commons.apache.org
For additional commands, e-mail: user-h...@commons.apache.org