Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#9 Bug 664096 Fix : unable to get JDBC connection in JBoss

closed-accepted
Mike Martin
None
5
2003-01-19
2003-01-08
Brian Smith
No

In some circumstances, the userName and password for
the JDBC connection are not known to the application
that invokes
PersistenceManagerFactoryImpl.getPersistenceManager
(e.g. a J2EE app using JBoss' connection pools). The
userName and password are never specified.

Some implementations of DataSource (noteably the one in
JBoss 2.4.3) do not treat
DataSource.getConnection(null, null) the same as
DataSource.getConnection(), which should use the
credentials specified in the pool configuration. The
end result is that the database refuses the logon
unless the userName and password are explicitly
supplied by the application to
PersistenceManagerFactoryImpl.

This patch tests for a null userName and explicitly
calls the appropriate DataSource.getConnection method.

Discussion

  • Brian Smith
    Brian Smith
    2003-01-08

     
    Attachments
  • Brian Smith
    Brian Smith
    2003-01-08

     
    Attachments
  • Brian Smith
    Brian Smith
    2003-01-08

    Logged In: YES
    user_id=46488

    That was supposed to read JBoss > 2.4.3

     
  • Brian Smith
    Brian Smith
    2003-01-08

    • summary: DataSource.getConnection(userName, password) fails --> Bug 664096 Fix : unable to get JDBC connection in JBoss
     
  • Brian Smith
    Brian Smith
    2003-01-08

    Patch tarball

     
    Attachments
  • Mike Martin
    Mike Martin
    2003-01-19

    • assigned_to: nobody --> jackknifebarber
    • status: open --> closed-accepted