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

closed-accepted
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

    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

     
  • Mike Martin

    Mike Martin - 2003-01-19
    • assigned_to: nobody --> jackknifebarber
    • status: open --> closed-accepted
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks