[jboss-cvs] JBossCache/src/org/jboss/cache/loader ...

Manik Surtani manik at jboss.org
Wed Mar 14 12:42:17 EDT 2007


  User: msurtani
  Date: 07/03/14 12:42:17

  Modified:    src/org/jboss/cache/loader  AdjListJDBCCacheLoader.java
  Log:
  Added logging
  
  Revision  Changes    Path
  1.4       +6 -3      JBossCache/src/org/jboss/cache/loader/AdjListJDBCCacheLoader.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: AdjListJDBCCacheLoader.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/loader/AdjListJDBCCacheLoader.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- AdjListJDBCCacheLoader.java	12 Mar 2007 18:13:47 -0000	1.3
  +++ AdjListJDBCCacheLoader.java	14 Mar 2007 16:42:17 -0000	1.4
  @@ -56,12 +56,15 @@
            {
               /* Instantiate an standalone connection factory as per configuration, either explicitly
          defined or the default one */
  +            getLogger().debug("Initialising with a connection factory since data source is not provided.");
  +            if (getLogger().isDebugEnabled())
  +               getLogger().debug("Using connection factory " + config.getConnectionFactoryClass());
               cf = (ConnectionFactory) Util.loadClass(config.getConnectionFactoryClass()).newInstance();
            }
            catch (Exception e)
            {
  -            getLogger().error("Connectionn factory class could not be loaded", e);
  -            throw new IllegalStateException("Connectionn factory class could not be loaded", e);
  +            getLogger().error("Connection factory class could not be loaded", e);
  +            throw new IllegalStateException("Connection factory class could not be loaded", e);
            }
         }
         else
  
  
  



More information about the jboss-cvs-commits mailing list