openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r581608 - in /openjpa/trunk/openjpa-kernel/src/main: java/org/apache/openjpa/kernel/BrokerImpl.java resources/org/apache/openjpa/kernel/localizer.properties
Date Wed, 03 Oct 2007 14:09:43 GMT
Author: allee8285
Date: Wed Oct  3 07:09:43 2007
New Revision: 581608

URL: http://svn.apache.org/viewvc?rev=581608&view=rev
Log:
OPENJPA-366 - Add message text to InternalException.

Modified:
    openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
    openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties

Modified: openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?rev=581608&r1=581607&r2=581608&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java (original)
+++ openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java Wed
Oct  3 07:09:43 2007
@@ -1733,7 +1733,7 @@
                 detachAllInternal(null);
             }
             if (_operationCount < 1)
-                throw new InternalException();
+                throw new InternalException(_loc.get("multi-threaded-access"));
             return _operationCount == 1;
         } catch (OpenJPAException ke) {
             throw ke;

Modified: openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties?rev=581608&r1=581607&r2=581608&view=diff
==============================================================================
--- openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
(original)
+++ openjpa/trunk/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
Wed Oct  3 07:09:43 2007
@@ -374,4 +374,8 @@
 to remove the @GeneratedValue annotation or modify the code to remove the \
 initializer processing.
 invalid-tran-status: The transaction was not in a valid state ({0}) to \
-accept the "{1}" method invocation.  Processing will continue.
\ No newline at end of file
+accept the "{1}" method invocation.  Processing will continue.
+multi-threaded-access: Multiple concurrent threads attempted to access a \
+    single broker. By default brokers are not thread safe, if you require \
+    and/or intent a broker to be accessed by more then one thread, set the \
+    openjpa.Multithreaded property to true to override the default behavior.



Mime
View raw message