tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject tomee git commit: ensure lazy jpa property is read from system properties too
Date Mon, 03 Oct 2016 15:17:21 GMT
Repository: tomee
Updated Branches:
  refs/heads/master 6cba7334a -> 9f14c0610


ensure lazy jpa property is read from system properties too


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/9f14c061
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/9f14c061
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/9f14c061

Branch: refs/heads/master
Commit: 9f14c0610d24a519bf4a58387f1de9bddb7446e7
Parents: 6cba733
Author: rmannibucau <rmannibucau@apache.org>
Authored: Mon Oct 3 17:17:12 2016 +0200
Committer: rmannibucau <rmannibucau@apache.org>
Committed: Mon Oct 3 17:17:12 2016 +0200

----------------------------------------------------------------------
 .../org/apache/openejb/assembler/classic/PersistenceBuilder.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/9f14c061/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/PersistenceBuilder.java
----------------------------------------------------------------------
diff --git a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/PersistenceBuilder.java
b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/PersistenceBuilder.java
index 5a54b21..1502888 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/PersistenceBuilder.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/assembler/classic/PersistenceBuilder.java
@@ -69,7 +69,8 @@ public class PersistenceBuilder {
         // Exclude Unlisted Classes
         unitInfo.setExcludeUnlistedClasses(info.excludeUnlistedClasses);
 
-        unitInfo.setLazilyInitialized(info.webappName != null || "true".equalsIgnoreCase(info.properties.getProperty("tomee.jpa.factory.lazy",
"false")));
+        unitInfo.setLazilyInitialized(info.webappName != null || "true".equalsIgnoreCase(info.properties.getProperty("tomee.jpa.factory.lazy",
+                SystemInstance.get().getProperty("tomee.jpa.factory.lazy", "false"))));
 
         final Context context = SystemInstance.get().getComponent(ContainerSystem.class).getJNDIContext();
 


Mime
View raw message