[Opensymphony-oscache] Configuring Clustering via API?
Joe Reger <[email protected]> Sun, 19 Feb 2006 20:36:53 CST
| Newsgroups | gmane.comp.java.open-symphony.os-cache |
|---|---|
| Message-ID | <25022086.1140403080255.JavaMail.os-j2ee@opensymphony01.contegix.com> |
Hi all! I'm trying to use the API to configure clustering. Here's the code I'm using: OsCacheClusteredProvider.admin = new GeneralCacheAdministrator(); JavaGroupsBroadcastingListener listener = new JavaGroupsBroadcastingListener(); OsCacheClusteredProvider.admin.getCache().addCacheEventListener(listener,listener.getClass()); Am I calling addCacheEventListener() properly? It compiles and runs but I tend to believe that I haven't properly passed in the listener that'll cause it to begin clustering. What's the Class that should be passed as the second argument? I just used the getClass() on my listener but this doesn't seem right. Thanks, Joe --------------------------------------------------------------------- Posted via Jive Forums http://forums.opensymphony.com/thread.jspa?threadID=19169&messageID=37333#37333