From af1796f17c9602f0cb069d27848a4081f9aa7374 Mon Sep 17 00:00:00 2001 From: Patrick Linskey Date: Thu, 1 Mar 2007 06:43:00 +0000 Subject: [PATCH] OPENJPA-160. Docs updates. git-svn-id: https://svn.apache.org/repos/asf/incubator/openjpa/trunk@513189 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/doc/manual/ref_guide_optimization.xml | 3 ++- .../src/doc/manual/ref_guide_runtime.xml | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/openjpa-project/src/doc/manual/ref_guide_optimization.xml b/openjpa-project/src/doc/manual/ref_guide_optimization.xml index 745ef0b7e..709e2226f 100644 --- a/openjpa-project/src/doc/manual/ref_guide_optimization.xml +++ b/openjpa-project/src/doc/manual/ref_guide_optimization.xml @@ -574,7 +574,8 @@ collection of results can speed up data loading by orders of magnitude. -By default, OpenJPA's EntityManagers use finalizers to ensure that resources +Outside of a Java EE 5 application server or other JPA persistence container, +OpenJPA's EntityManagers use finalizers to ensure that resources get cleaned up. If you are properly managing your resources, this finalization is not necessary, and will introduce unneeded synchronization, leading to scalability problems. You can disable this protective behavior by setting the diff --git a/openjpa-project/src/doc/manual/ref_guide_runtime.xml b/openjpa-project/src/doc/manual/ref_guide_runtime.xml index 872131d62..1b2c8670f 100644 --- a/openjpa-project/src/doc/manual/ref_guide_runtime.xml +++ b/openjpa-project/src/doc/manual/ref_guide_runtime.xml @@ -119,14 +119,16 @@ and Brokers. -The default OpenJPAEntityManager implementation automatically closes itself -during instance finalization. This guards against accidental resource leaks -that may occur if a developer fails to explicitly close EntityManagers when -finished with them, but it also incurs a scalability bottleneck, since the -JVM must perform synchronization during instance creation, and since the -finalizer thread will have more instances to monitor. To avoid this overhead, -set the openjpa.BrokerImpl - configuration property to non-finalizing. +Outside of a Java EE 5 application server or other JPA persistence container +environment, the default OpenJPAEntityManager implementation automatically +closes itself during instance finalization. This guards against accidental +resource leaks that may occur if a developer fails to explicitly close +EntityManagers when finished with them, but it also incurs a scalability +bottleneck, since the JVM must perform synchronization during instance creation, +and since the finalizer thread will have more instances to monitor. To avoid +this overhead, set the +openjpa.BrokerImpl +configuration property to non-finalizing.