cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From un...@apache.org
Subject svn commit: r201969 - /cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
Date Mon, 27 Jun 2005 11:16:26 GMT
Author: unico
Date: Mon Jun 27 04:16:26 2005
New Revision: 201969

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

Modified:
    cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/AbstractMessageListener.java

Modified: cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
URL: http://svn.apache.org/viewcvs/cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/AbstractMessageListener.java?rev=201969&r1=201968&r2=201969&view=diff
==============================================================================
--- cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
(original)
+++ cocoon/blocks/jms/trunk/java/org/apache/cocoon/components/jms/AbstractMessageListener.java
Mon Jun 27 04:16:26 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