[infinispan-dev] singleton @Listeners

Mircea Markus mmarkus at redhat.com
Thu Jun 28 11:26:56 EDT 2012


This is a problem that pops up constantly: 
User:      "I add a listener to my distributed/replicated cache but this gets invoked numOwners times - can I make that to be invoked only once cluster wise?" 
Developer: "Yes, you can! You have to do that and that..."

What about a "singleton" attribute on the Listener? Would make the reply shorter:
Developer: "Use @Listener(singleton=true)"

Cheers,
Mircea



More information about the infinispan-dev mailing list