dlr 01/10/18 15:00:31
Modified: src/java/org/apache/turbine/util/db IDBroker.java
Log:
Added some more great text by John McNally <[EMAIL PROTECTED]> to
help further clarify the IDBroker's warning messages for
databases--like MySQL--which do not support transactions (out of the
box).
Revision Changes Path
1.3 +8 -5
jakarta-turbine-2/src/java/org/apache/turbine/util/db/IDBroker.java
Index: IDBroker.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-2/src/java/org/apache/turbine/util/db/IDBroker.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -u -r1.2 -r1.3
--- IDBroker.java 2001/10/17 16:37:26 1.2
+++ IDBroker.java 2001/10/18 22:00:31 1.3
@@ -108,7 +108,7 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Frank Y. Kim</a>
* @author <a href="mailto:[EMAIL PROTECTED]">John D. McNally</a>
- * @version $Id: IDBroker.java,v 1.2 2001/10/17 16:37:26 dlr Exp $
+ * @version $Id: IDBroker.java,v 1.3 2001/10/18 22:00:31 dlr Exp $
*/
public class IDBroker
implements Runnable, IdGenerator
@@ -234,10 +234,13 @@
}
if (!transactionsSupported)
{
- Log.warn("IDBroker is being used with db: " + dbName +
- "\n which does not support transactions. It is possible to " +
- "\n generate duplicate keys, if multiple JVM's are used or other " +
- "\n means are used to write to the database.");
+ Log.warn
+ ("IDBroker is being used with db '" + dbName +
+ "', which does not support transactions. IDBroker " +
+ "attempts to use transactions to limit the possibility of " +
+ "duplicate key generation. Without transactions, " +
+ "duplicate key generation is possible if multiple JVMs " +
+ "are used or other means are used to write to the database.");
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]