You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by dj...@apache.org on 2010/07/09 03:20:35 UTC
svn commit: r962383 -
/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/persistence/JtaEntityManagerRegistry.java
Author: djencks
Date: Fri Jul 9 01:20:35 2010
New Revision: 962383
URL: http://svn.apache.org/viewvc?rev=962383&view=rev
Log:
geronimo doesn't need to use this method
Modified:
openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/persistence/JtaEntityManagerRegistry.java
Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/persistence/JtaEntityManagerRegistry.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/persistence/JtaEntityManagerRegistry.java?rev=962383&r1=962382&r2=962383&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/persistence/JtaEntityManagerRegistry.java (original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/persistence/JtaEntityManagerRegistry.java Fri Jul 9 01:20:35 2010
@@ -79,6 +79,7 @@ public class JtaEntityManagerRegistry {
* @throws IllegalStateException if the entity manger is extended and there is not an existing entity manager
* instance already registered
*/
+ @Geronimo
public EntityManager getEntityManager(EntityManagerFactory entityManagerFactory, Map properties, boolean extended, String unitName) throws IllegalStateException {
if (entityManagerFactory == null) throw new NullPointerException("entityManagerFactory is null");
EntityManagerTxKey txKey = new EntityManagerTxKey(entityManagerFactory);
@@ -128,11 +129,6 @@ public class JtaEntityManagerRegistry {
}
}
- @Geronimo
- public EntityManager getEntityManager(EntityManagerFactory entityManagerFactory, Map properties, boolean extended) throws IllegalStateException {
- return getEntityManager(entityManagerFactory, properties, extended, "<unknown>");
- }
-
/**
* Adds the entity managers for the specified component to the registry. This should be called when the component
* is entered.