* for configuration options.
*
* <p><strong>TODO</strong> - Support connection pooling (including message
-* format objects) so that <code>authenticate()</code> does not have to be
+* format objects) so that <code>authenticate()</code>,
+* <code>getPassword()</code> and <code>authenticate()</code> do not have to be
* synchronized and would fix the ugly connection logic. </p>
*
* @author Craig R. McClanahan
/**
* Return the password associated with the given principal's user name.
*/
- protected String getPassword(String username) {
+ protected synchronized String getPassword(String username) {
// Look up the user's credentials
String dbCredentials = null;
*
* @exception SQLException if a database error occurs
*/
- protected PreparedStatement roles(Connection dbConnection, String username)
+ protected synchronized PreparedStatement roles(Connection dbConnection,
+ String username)
throws SQLException {
if (preparedRoles == null) {
</properties>
<body>
+<section name="Tomcat 6.0.3 (remm)">
+ <subsection name="General">
+ <changelog>
+ </changelog>
+ </subsection>
+ <subsection name="Catalina">
+ <changelog>
+ <fix>
+ <bug>40844</bug> Missing syncs in JDBCRealm. (markt)
+ </fix>
+ </changelog>
+ </subsection>
+ <subsection name="Coyote">
+ <changelog>
+ </changelog>
+ </subsection>
+</section>
<section name="Tomcat 6.0.2 (remm)">
<subsection name="General">
<changelog>