cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject svn commit: r201968 - /cocoon/branches/BRANCH_2_1_X/src/blocks/jms/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
Date Mon, 27 Jun 2005 11:15:05 GMT
Author: unico
Date: Mon Jun 27 04:15:02 2005
New Revision: 201968

URL: http://svn.apache.org/viewcvs?rev=201968&view=rev
Log:
it seems the session must be recovered when reconnecting

Modified:
    cocoon/branches/BRANCH_2_1_X/src/blocks/jms/java/org/apache/cocoon/components/jms/AbstractMessageListener.java

Modified: cocoon/branches/BRANCH_2_1_X/src/blocks/jms/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
URL: http://svn.apache.org/viewcvs/cocoon/branches/BRANCH_2_1_X/src/blocks/jms/java/org/apache/cocoon/components/jms/AbstractMessageListener.java?rev=201968&r1=201967&r2=201968&view=diff
==============================================================================
--- cocoon/branches/BRANCH_2_1_X/src/blocks/jms/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
(original)
+++ cocoon/branches/BRANCH_2_1_X/src/blocks/jms/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
Mon Jun 27 04:15:02 2005
@@ -180,6 +180,8 @@
                 m_subscriber = m_session.createSubscriber(topic, m_selector, false);
             }
             m_subscriber.setMessageListener(this);
+            // recover in case of reconnection
+            m_session.recover();
         }
         else {
             if (getLogger().isWarnEnabled()) {



Mime
View raw message