This patch modifies the JDBCHelperFactory and
JDBCHelper classes, adding the capability to use the
standard J2EE method for obtaining a JDBC connection
(using a javax.sql.DataSource).
The patched classes look for a "dataSourceName"
property in the jrf.properties file. If present, the
DataSourceName property defines the JNDI name of the
DataSource to be used by JRF. Example:
dataSourceName=jdbc/OracleDS
When using such a data source, it is no longer
necessary to specify the JDBC driver, database url,
user name, and password in the jrf.properties file.
The ability to use a DataSource in this way is useful
for programs running under a J2EE compliant server,
such as Orion Application Server
(http://www.orionserver.com/).
These modifications reference classes not included in
the regular J2SE SDK. In order to build these
modifications into JRF, it is necessary to obtain the
J2EE SDK and place j2ee.jar in the classpath.
Logged In: YES
user_id=11795
Great patch, Thanks.
Logged In: YES
user_id=11795
Please attach code changes.
Logged In: YES
user_id=11795
FYI - See patch #414426