The motivation is described in Resource Reference Binding document.
Briefly, we would like a user to provide a data source reference name in addition to a data source itself. This reference name is used in the source code and in standard deployment descriptor (DD). The reference name is bound to a data source in a server-specific DD.
For this purpose, we introduce a new dialog allowing to select the reference name. User may also create a new reference name.
User wants to work with database.
Basic Flow
+-----------------------------------------------------------------------------+ | Choose Database | +-----------------------------------------------------------------------------+ | | | Reference: |_SampleReference__[<JDBC connection URL>]___|_v_| | Add...| | | | | + Service Locator Strategy------------------------------------------------+ | | | (o) Generate Inline Lookup Code | | | | ( ) Existing Class |_______________________________________| |Browse| | | | +-------------------------------------------------------------------------+ | | | | | OK | | Cancel | | Help | | +-----------------------------------------------------------------------------+
Alternative Flow A2
+----------------------------------------------------------------------+ | Add Data Source Reference | +----------------------------------------------------------------------+ | | | Reference Name: |______________________________| | | | | (o) Project Data Sources: |_jdbc/SampleProjectDS_____|_v_| | Add...| | | | | ( ) Server Data Sources: |_jdbc/SampleServerDS______|_v_| | | | | [ ] Copy Selected Data Source To Project | | | | | OK | | Cancel | | Help | | +----------------------------------------------------------------------+
The rest of the flow is left as it currently is...
If there is no suitable data source...
If there is no suitable database connection...
If there is no suitable database driver...
| new_conn.PNG | ![]() |
17856 bytes |
| new_conn.png | ![]() |
17856 bytes |
| new_driver.PNG | ![]() |
14962 bytes |
| new_driver.png | ![]() |
14962 bytes |
| new_ds.PNG | ![]() |
12479 bytes |
| new_ds.png | ![]() |
12479 bytes |