[jboss-dev-forums] [Design of JBossCache] - Re: Listener Notifications to happen asyncronously?

manik.surtani@jboss.com do-not-reply at jboss.com
Thu Jun 14 11:35:14 EDT 2007


The primary reason was precisely that people were using listeners to apply aspects, which we think is incorrect as it can cause incorrect operation, reentrancy issues, etc.

What needs to be noted is that such notifications are purely that - a notification.  Any operations that happen in a listener implementation should not use the same scope as the original thread triggering the event to do stuff - like make more calls into the cache, etc.  Any such work should happen in a separate thread (as we recommended in previous versions of JBoss Cache).  The only difference is now we're forcing the use of a separate thread.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4054451#4054451

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4054451



More information about the jboss-dev-forums mailing list