jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Gordon <justingor...@yahoo.com>
Subject Question on how to add listeners
Date Sat, 31 Jan 2009 08:26:49 GMT
I want to add JSR 107 like listeners to a JCS region. 

I tried this but it didn't work:

        ICacheListener cacheEventListener = new JcsCacheEventListenerAdapter(this, myListener);
        CacheEventQueueFactory factory = new CacheEventQueueFactory();
        ICacheEventQueue cacheEventQueue = factory.createCacheEventQueue(cacheEventListener,
                                                                         0,
                                                                         m_cacheName,
                                                                         "",
                                                                         ICacheEventQueue.SINGLE_QUEUE_TYPE);


This compiles but the listener does not get notified. Is there something I need to do to start
the queue?

Thanks,

Justin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message