Trace:
Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Last revision Both sides next revision | ||
jvx:common:setup:dbindependent_config [2018/02/02 12:45] admin |
jvx:common:setup:dbindependent_config [2020/06/19 11:35] cduncan Edited for English grammar (capitalization, punctuation, correct verb conjugation) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~Title: Database Independent Configuration of the Application~~ | + | ~~Title: Database Independent-Configuration of the Application~~ |
- | JVx allows the development of database independent applications. However, access to the database requires specific information, such as host name, database port, database name, username, password, etc. | + | JVx allows the development of database-independent applications. However, access to the database requires specific information, such as host name, database port, database name, username, password, etc. |
This information is usually saved in a configuration file. We use the applications configuration config.xml that is available for our application on the server side: | This information is usually saved in a configuration file. We use the applications configuration config.xml that is available for our application on the server side: | ||
Line 34: | Line 34: | ||
The developer could now use a specific implementation, such as OracleDBAccess to access only Oracle databases. Although this allows the use of special features provided by OracleDBAccess if the database is changed, the source code has to be altered as well. | The developer could now use a specific implementation, such as OracleDBAccess to access only Oracle databases. Although this allows the use of special features provided by OracleDBAccess if the database is changed, the source code has to be altered as well. | ||
- | In this case we chose a generic approach to access the database: | + | In this case, we chose a generic approach to access the database: |
<file java> | <file java> |