You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by un...@apache.org on 2004/08/18 16:42:48 UTC

svn commit: rev 36568 - cocoon/trunk/src/blocks/eventcache/java/org/apache/cocoon/caching/impl

Author: unico
Date: Wed Aug 18 07:42:47 2004
New Revision: 36568

Modified:
   cocoon/trunk/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/JMSEventMessageListener.java
Log:
lookup event aware

Modified: cocoon/trunk/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/JMSEventMessageListener.java
==============================================================================
--- cocoon/trunk/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/JMSEventMessageListener.java	(original)
+++ cocoon/trunk/src/blocks/eventcache/java/org/apache/cocoon/caching/impl/JMSEventMessageListener.java	Wed Aug 18 07:42:47 2004
@@ -73,6 +73,11 @@
         m_eventAwareRole = parameters.getParameter(EVENTCACHE_ROLE_PARAM, DEFAULT_EVENTCACHE_ROLE);
     }
 
+    public void initialize() throws Exception {
+        super.initialize();
+        m_eventCache = (EventAware) m_manager.lookup(m_eventAwareRole);
+    }
+    
     public void dispose() {
         super.dispose();
         this.m_manager.release(m_eventCache);