db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From to...@apache.org
Subject cvs commit: db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu faq.xml
Date Thu, 16 Dec 2004 11:48:08 GMT
tomdz       2004/12/16 03:48:08

  Modified:    src/doc/forrest/src/documentation/content/xdocs/docu faq.xml
  Log:
  Added FAQ entry for using OJB in a web app
  
  Revision  Changes    Path
  1.5       +21 -1     db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml
  
  Index: faq.xml
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/doc/forrest/src/documentation/content/xdocs/docu/faq.xml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- faq.xml	10 Dec 2004 00:25:00 -0000	1.4
  +++ faq.xml	16 Dec 2004 11:48:08 -0000	1.5
  @@ -650,6 +650,26 @@
               </answer>
           </faq>
   
  +        <faq id="usingInWebApp">
  +            <question>
  +                How to use OJB in an web app?
  +            </question>
  +            <answer>
  +                <p>
  +                    If you follow these rules, then OJB works fine in web apps:
  +                </p>
  +                <ul>
  +                	<li>Don't put OJB's jars into one of the servers directories but
rather put them into the <code>WEB-INF/lib</code>
  +                	    folder of your web app.</li>
  +                	<li>OJB searches for its configuration files (<code>OJB.properties</code>,
<code>repository.xml</code>) in the classpath.
  +                	    Therefore, it is easiest if you put them in the <code>WEB-INF/classes<code>
folder which is automatically in the
  +                	    classpath of the web app</li>
  +                	<li>Don't hold onto the <code>PersistenceBroker</code>
instances, rather get one whenever you want to do something, and close
  +                	    it once you're done.</li>
  +                </ul>
  +            </answer>
  +        </faq>
  +
           <faq id="maxPerformance">
               <question>
                   What are the best settings for maximal performance?
  
  
  

---------------------------------------------------------------------
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