The current DataSource api seems rather odd. From what I can tell, it's designed exactly for weblogic and doesn't cleanly handle a number of scenarios. I'd like to be able to do any number of the following:
1) Enable editing of DS properties without having to extend an obfuscated IDEA class (LocalDataSource).
2) Separate methods for retrievinng an existing datasource and creating a new one
3) Better named methods for deleting a datasource.
Basically DataSourceProvider should have stuff like:
or even just update, where the implementor can check if it's a new ds or an existing one (based on name).
For bonus points, it should be possible to get to the DS config popup without having an appserver running (eg, for local mode, most appservers allow for adding of DS's through editing an xml file, regardless of whether the server is running or not).