You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by km...@apache.org on 2009/02/12 00:55:04 UTC
svn commit: r743574 -
/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/persistence/JtaEntityManagerRegistry.java
Author: kmalhi
Date: Wed Feb 11 23:55:04 2009
New Revision: 743574
URL: http://svn.apache.org/viewvc?rev=743574&view=rev
Log:
Fixed typo in error message
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=743574&r1=743573&r2=743574&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 Wed Feb 11 23:55:04 2009
@@ -29,7 +29,7 @@
/**
* The JtaEntityManagerRegistry tracks JTA entity managers for transation and extended scoped
- * entity managers. A signle instance of this object should be created and shared by all
+ * entity managers. A single instance of this object should be created and shared by all
* JtaEntityManagers in the server instance. Failure to do this will result in multiple entity
* managers being created for a single persistence until, and that will result in cache
* incoherence.
@@ -41,7 +41,7 @@
private final TransactionSynchronizationRegistry transactionRegistry;
/**
- * Registry of entended context entity managers.
+ * Registry of extended context entity managers.
*/
private final ThreadLocal<ExtendedRegistry> extendedRegistry = new ThreadLocal<ExtendedRegistry>() {
protected ExtendedRegistry initialValue() {
@@ -88,7 +88,7 @@
if (extended) {
EntityManager entityManager = getInheritedEntityManager(entityManagerFactory);
if (entityManager == null) {
- throw new IllegalStateException("InternalError: an entity manager should already be registered for this entended persistence unit");
+ throw new IllegalStateException("InternalError: an entity manager should already be registered for this extended persistence unit");
}
// if transaction is active, we need to register the entity manager with the transaction manager