Menu

#3 option to use DataSource for Connection

open-fixed
None
5
2002-04-19
2001-03-06
Anonymous
No

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.

Discussion

  • Jonathan Carlson

    Logged In: YES
    user_id=11795

    Great patch, Thanks.

     
  • Jonathan Carlson

    • assigned_to: nobody --> joncrlsn
     
  • Jonathan Carlson

    Logged In: YES
    user_id=11795

    Please attach code changes.

     
  • Jonathan Carlson

    Logged In: YES
    user_id=11795

    FYI - See patch #414426

     
  • Erik Tennant

    Erik Tennant - 2002-04-19
    • status: open --> open-accepted
     
  • Erik Tennant

    Erik Tennant - 2002-04-19
    • status: open-accepted --> open-fixed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.