openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r581609 - in /openjpa/branches/1.0.x/openjpa-kernel/src/main: java/org/apache/openjpa/kernel/BrokerImpl.java resources/org/apache/openjpa/kernel/localizer.properties
Date Wed, 03 Oct 2007 14:11:27 GMT
Author: allee8285
Date: Wed Oct  3 07:11:27 2007
New Revision: 581609

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

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

Modified: openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java?rev=581609&r1=581608&r2=581609&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
(original)
+++ openjpa/branches/1.0.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/BrokerImpl.java
Wed Oct  3 07:11:27 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/branches/1.0.x/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
URL: http://svn.apache.org/viewvc/openjpa/branches/1.0.x/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties?rev=581609&r1=581608&r2=581609&view=diff
==============================================================================
--- openjpa/branches/1.0.x/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
(original)
+++ openjpa/branches/1.0.x/openjpa-kernel/src/main/resources/org/apache/openjpa/kernel/localizer.properties
Wed Oct  3 07:11:27 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