db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/odmg/locking LockManagerFactory.java
Date Tue, 22 Mar 2005 15:49:14 GMT
arminw      2005/03/22 07:49:14

  Modified:    src/java/org/apache/ojb/odmg/locking Tag: OJB_1_0_RELEASE
                        LockManagerFactory.java
  Log:
  add logging
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.5.2.3   +4 -0      db-ojb/src/java/org/apache/ojb/odmg/locking/Attic/LockManagerFactory.java
  
  Index: LockManagerFactory.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/odmg/locking/Attic/LockManagerFactory.java,v
  retrieving revision 1.5.2.2
  retrieving revision 1.5.2.3
  diff -u -r1.5.2.2 -r1.5.2.3
  --- LockManagerFactory.java	19 Feb 2005 21:49:54 -0000	1.5.2.2
  +++ LockManagerFactory.java	22 Mar 2005 15:49:14 -0000	1.5.2.3
  @@ -52,6 +52,8 @@
           {
               // use the deprecated old odmg locking stuff
               log.info("Setup *deprecated* odmg-locking api.");
  +            log.info("Used LockManagerClass=" + lockManagerClass);
  +            log.info("Used LockMapClass=" + lockMapClass);
               if(!org.apache.ojb.odmg.locking.LockManager.class.isAssignableFrom(lockManagerClass))
               {
                   throw new OJBRuntimeException(buildErrorMsg(lockMapClass, lockManagerClass));
  @@ -62,6 +64,7 @@
           {
               // use the kernel locking api
               log.info("Setup odmg-locking api.");
  +            log.info("Used LockManagerClass=" + lockManagerClass);
               if(org.apache.ojb.odmg.locking.LockManager.class.isAssignableFrom(lockManagerClass))
               {
                   throw new OJBRuntimeException(buildErrorMsg(lockMapClass, lockManagerClass));
  @@ -73,6 +76,7 @@
       private void setupLockManager(Configuration conf, Class lockManagerClass)
       {
           long timeout = conf.getInteger("LockTimeout", 60000);
  +        log.info("LockTimeout=" + timeout);
           try
           {
               LockManager lm = (LockManager) ClassHelper.newInstance(lockManagerClass);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message