DataSource API

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:

create
update
delete

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).

8 comments
Comment actions Permalink

This api did not assume manioulating with local data sources. You should
implement DataSourceProvider interface: creating new instance (not real data
source) and loading all configured data source names.There are no methods
for creating/updating/deleting real data sources.

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Hani Suleiman" <hani@formicary.net> wrote in message
news:21175623.1086540580505.JavaMail.itn@is.intellij.net...

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:

>

create
update
delete

>

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).


0
Comment actions Permalink

Ok, so what's the purpose of this API? Just to show a list of datasources that are available, and to allow a user to select a table perhaps for a CMP mapping?

0
Comment actions Permalink

Well, user can also modify local data sources but this is supported (should
be supported) by default implementation.

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Hani Suleiman" <hani@formicary.net> wrote in message
news:32553356.1086791154020.JavaMail.itn@is.intellij.net...

Ok, so what's the purpose of this API? Just to show a list of datasources

that are available, and to allow a user to select a table perhaps for a CMP
mapping?


0
Comment actions Permalink

Right, but what's the point of this? What sort of integration is anticipated between a local data source and an appserver?

0
Comment actions Permalink

Well they're being used in weblogic only in order to enable user to choose
datasource for mapping.
--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Hani Suleiman" <hani@formicary.net> wrote in message
news:28502007.1086798174843.JavaMail.itn@is.intellij.net...

Right, but what's the point of this? What sort of integration is

anticipated between a local data source and an appserver?


0
Comment actions Permalink

Yes, but if it's a local datasource, doesn't that mean it doesn't exist on the server? So how can you use a local DS? If it does get created in the server, then what is the difference between it and a regular DS?

0
Comment actions Permalink

Local DS are created by user but server specific DS are loaded from the
server (when some j2ee configuration was running).

--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Hani Suleiman" <hani@formicary.net> wrote in message
news:31974171.1086804776214.JavaMail.itn@is.intellij.net...

Yes, but if it's a local datasource, doesn't that mean it doesn't exist on

the server? So how can you use a local DS? If it does get created in the
server, then what is the difference between it and a regular DS?


0
Comment actions Permalink

Ummmm.... I might be a little late.... but how about DISABLING this if we don't even have a WebLogic instance! Gosh, talk about teasing us with something cool we can use, and then saying it's on WebLogic when we don't even run WebLogic or have it configured or sometimes even have the plugin deinstalled.

Man, that sucks, and so does WebLogic. :)

R

0

Please sign in to leave a comment.