Suggest you have a look at
http://wiki.jboss.org/wiki/Wiki.jsp?page=FDVersusFD_SOCK,
particularly the last bit.
I suspect the reason it's taking a long time to get the 2nd notification is that your
code that handles the first notification is blocking the JGroups thread that sends up view
change notifications. If you're not doing this, when you get a view change
notification, spawn a thread and do your puts into the cache in that thread.
Also, beginning in 1.3.0, JBC introduced a new class org.jboss.cache.config.Option, which
can be passed to overloaded versions of the main api calls (e.g. get, put, remove). You
can create an Option with property "cacheModeLocal" set to "true"; if
you pass that to a put or remove, the call will not replicate. See the Option class
javadocs for more.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974026#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...