openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r483176 - /incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java
Date Wed, 06 Dec 2006 19:02:24 GMT
Author: ppoddar
Date: Wed Dec  6 11:02:19 2006
New Revision: 483176

URL: http://svn.apache.org/viewvc?view=rev&rev=483176
Log:
Terminate loop when connection attempt succeeds.


Modified:
    incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java

Modified: incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java
URL: http://svn.apache.org/viewvc/incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java?view=diff&rev=483176&r1=483175&r2=483176
==============================================================================
--- incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java
(original)
+++ incubator/openjpa/trunk/openjpa-kernel/src/main/java/org/apache/openjpa/event/JMSRemoteCommitProvider.java
Wed Dec  6 11:02:19 2006
@@ -244,7 +244,7 @@
 
         close();
         boolean connected = false;
-        for (int i = 0; i < _reconnectAttempts; i++) {
+        for (int i = 0; !connected && i < _reconnectAttempts; i++) {
             try {
                 if (log.isInfoEnabled())
                     log.info(s_loc.get("jms-reconnect-attempt", _topicName,



Mime
View raw message