I wasn't talking about that DataSource, but a possible optimisation where a Java Bean (as you call it, I was using 'DataSource (like)' :-)
:-)
could be pre-populated for the common connection requests, to avoid having to create a new Java Bean object each time. With such a scheme there would need to be management of those objects. Probably not worth it, but I wasn't exactly sure what you were proposing in this area, but your comments above clear that up.
I get it. I agree its not worth it - the overhead of creating a new object and then initializing it is probably insignificant compared to the cost establishing the connection. If not, a simple cache in Driver from URL to DataSource-like JavaBean could be used.
-- Jeremy
