geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dwo...@apache.org
Subject svn commit: r544588 - /geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
Date Tue, 05 Jun 2007 18:35:24 GMT
Author: dwoods
Date: Tue Jun  5 11:35:24 2007
New Revision: 544588

URL: http://svn.apache.org/viewvc?view=rev&rev=544588
Log:
GERONIMO-3211 The PersistenceUnitGBean is added to wrong configuration for EAR application

Modified:
    geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java

Modified: geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java?view=diff&rev=544588&r1=544587&r2=544588
==============================================================================
--- geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
(original)
+++ geronimo/server/trunk/modules/geronimo-persistence-jpa10-builder/src/main/java/org/apache/geronimo/persistence/builder/PersistenceUnitBuilder.java
Tue Jun  5 11:35:24 2007
@@ -181,7 +181,7 @@
     }
 
     private void installPersistenceUnitGBean(PersistenceDocument.Persistence.PersistenceUnit
persistenceUnit, Module module, String moduleType, String persistenceModulePath) throws DeploymentException
{
-        EARContext moduleContext = module.getEarContext();
+        EARContext moduleContext = module.getRootEarContext() == null ? module.getEarContext()
: module.getRootEarContext();
         String persistenceUnitName = persistenceUnit.getName().trim();
         if (persistenceUnitName.length() == 0) {
             persistenceUnitName = ANON_PU_NAME;



Mime
View raw message