dlr         01/10/18 14:59:33

  Modified:    src/java/org/apache/torque/oid 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.6       +8 -5      
jakarta-turbine-torque/src/java/org/apache/torque/oid/IDBroker.java
  
  Index: IDBroker.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/oid/IDBroker.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -u -r1.5 -r1.6
  --- IDBroker.java     2001/10/17 16:36:12     1.5
  +++ IDBroker.java     2001/10/18 21:59:33     1.6
  @@ -114,7 +114,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.5 2001/10/17 16:36:12 dlr Exp $
  + * @version $Id: IDBroker.java,v 1.6 2001/10/18 21:59:33 dlr Exp $
    */
   public class IDBroker
       implements Runnable, IdGenerator
  @@ -255,10 +255,13 @@
           }
           if (!transactionsSupported)
           {
  -            Torque.getCategory().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.");
  +            Torque.getCategory().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]

Reply via email to