• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why don't XADataSource and ConnectionPoolDataSource extend the DataSource interface?

 
Dan Bizman
Ranch Hand
Posts: 387
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain this logic to me? Why aren't they all DataSources? Wouldn't it have made more sense and cleaner code to have them all be DataSources so that the common elements could be handled the same way and the diff. elements could be handled by casting when needed? Am I missing something?
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering that myself. I recently coded a jdbc driver for jamon and looked into doing a DataSource, but found it all to be quite confusing. Also it would have been nice if somehow DataSources would have leveraged the Driver interface somehow.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic