Bugs item #525840, was opened at 2002-03-04 22:59 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=525840&group_id=22866
Category: JBossCX Group: v2.4 (stable) Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Guy Rouillier (guyr) Assigned to: Scott M Stark (starksm) Summary: Userid/password not respected in db conn Initial Comment: In the 2.4.x codebase, in EJB code specifying getConnection(userid, password) will not return a connection for that userid and password. The code will change the default userid and password in the connection factory to the specified userid and password. But then it will just retrieve a generic object from the pool. In most cases, that generic object will have been obtained using the default userid and password (which we just changed.) Only when a new connection is required will the changed userid and password be used, but that will most likely be long after the code the changed the userid and password has finished. So the invocation that asked for a particular userid and password will most likely get a generic connection, while some later invocation that asks for a generic connection will unwittingly get one generated with the changed credentials. The attached zip contains corrections for this but only for the XA pool. The same type of change needs to be made for the JDBC pool. See the file changes.txt for a description of these changes. The four diff files contain the changes in diff format. ---------------------------------------------------------------------- Comment By: Scott M Stark (starksm) Date: 2002-04-05 12:05 Message: Logged In: YES user_id=175228 Fixed applied for 2.4.5 ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376685&aid=525840&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
