db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject cvs commit: db-ojb/src/java/org/apache/ojb/broker/metadata RepositoryPersistor.java
Date Wed, 23 Apr 2003 08:10:43 GMT
thma        2003/04/23 01:10:43

  Modified:    src/test/org/apache/ojb OJB.properties
               src/java/org/apache/ojb/broker/metadata
                        RepositoryPersistor.java
  Log:
  update documentation
  
  Revision  Changes    Path
  1.46      +7 -4      db-ojb/src/test/org/apache/ojb/OJB.properties
  
  Index: OJB.properties
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/OJB.properties,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- OJB.properties	22 Apr 2003 20:23:59 -0000	1.45
  +++ OJB.properties	23 Apr 2003 08:10:42 -0000	1.46
  @@ -4,7 +4,7 @@
   # Author: Thomas Mahler and many others
   #
   #----------------------------------------------------------------------------------------
  -# Default repository file
  +# repository file settings
   #----------------------------------------------------------------------------------------
   # The repositoryFile entry tells OJB to use this file as as its standard mapping
   # repository. The file is looked up from the classpath.
  @@ -13,11 +13,14 @@
   #
   # If the useSerializedRepository entry is set to true, OJB tries to load a
   # serialized version of the repository for performance reasons.
  -# if set to false, OJB always loads the xml file
  -useSerializedRepository=true
  +# if set to false, OJB always loads the xml file.
  +# Setting this flag to true will accelerate the startup sequence of OJB. 
  +# If set to true changes to the repository.xml file will only be detected
  +# after maually deleting the repository.xml.serialized file.
  +useSerializedRepository=false
   #
   # If Repository serialization is used the entry serializedRepositoryPath defines the
  -# dirercory where the Repository is written to and read from.
  +# directory where the Repository is written to and read from.
   # this entry is used only when the useSerializedRepository flag is set to true
   #
   serializedRepositoryPath=.
  
  
  
  1.18      +8 -4      db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryPersistor.java
  
  Index: RepositoryPersistor.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/java/org/apache/ojb/broker/metadata/RepositoryPersistor.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- RepositoryPersistor.java	22 Apr 2003 20:23:59 -0000	1.17
  +++ RepositoryPersistor.java	23 Apr 2003 08:10:43 -0000	1.18
  @@ -156,9 +156,13 @@
       /**
        * Read the repository configuration file.
        * <br>
  -     * If configuration property <i>useSerializedRepository</i> was <code>true</code>
  -     * all subsequent calls read a serialized version of the repository from the
  -     * system tmp dir (the filename argument will be ignored).
  +     * If configuration property <code>useSerializedRepository</code> is <code>true</code>
  +     * all subsequent calls read a serialized version of the repository.
  +     * The directory where the serialized repository is stored can be specified
  +     * with the <code>serializedRepositoryPath</code> entry in OJB.properties.
  +     * Once a serialized repository is found changes to repository.xml will be
  +     * ignored. To force consideration of these changes the serialized repository
  +     * must be deleted manually.
        */
       public DescriptorRepository readDescriptorRepository(String filename)
               throws MalformedURLException, ParserConfigurationException, SAXException, IOException
  
  
  

Mime
View raw message