Atomikos Forum |
|
For better compatibility with Java 6 it would be nice if Atomikos jdbc interfaces implemented the new Wrapper interface. Doing so shouldn't break backwards compatibility but would provide forward compatibility for apps that wish to use those the new Java 6 features.
I don't know what else is new in the Java 6 connection interfaces but Wrapper is the one I wish I had at the moment. :) Thanks, Mike
I'm not looking for full 1.6 support within Atomikos' internals. I'm just looking for support for 1.6 methods in Atomikos' pooling apis.
I took a look at the 1.6 changes and the only changes that impact Atomikos' pooling was the addition of the Wrapper Interface to DataSource and Connection. I'm mostly needing Wrapper implemented in AbstractDataSourceBean so I can use the Wrapper methods to help implement some non Atomikos specific DataSource wrappers of my own. I don't believe implementing the Wrapper methods in AbstractDataSourceBean will impact backwards compatibility. ConnectionProxy already takes care of the Wrapper methods on Connection good enough for my needs anyway. What do you think? Mike
Hi,
The Wrapper methods to add use generics on their argument types. This does not compile in a compatible way to JDK 1.4, meaning that compatibility would be broken. Conclusion: adding these would break Java 1.4 compatibility. So this is a major decision for us to take, and to be considered carefully. Best
You're right, I forgot about Generics. The only way I can think of to get around that one would be to provide a special Java 5/6 DataSourceBean. That's probably not worth the uglying of the api it unless you're planning to keep 1.4 compatibility for many more years to come. In which case it might be worth adding sooner than later. Anyway, thanks for hearing my request.
Thanks, Mike |