[jboss-user] [JBoss Cache: Core Edition] - Re: Various errors showing up when load testing

manik.surtani@jboss.com do-not-reply at jboss.com
Tue Feb 24 04:42:00 EST 2009

"jshowalter" wrote : Based on an earlier thread on this forum that I started, and their response from JBoss (which I think was from you, Manik!) asking how to avoid notification on put, we call setCacheModeLocal(true) for puts of data read from the database as opposed to puts of new data. Will that not accomplish what we want? Also, how would calling putForExternalRead solve the TimeoutException?

pFER implicitly sets your timeout to 0 so it won't wait for locks.  It it cannot acquire the lock *immediately*, it won't fail either - it will just not do anything.  This is OK since the only time it won't be able to get a write lock is if some other thread is doing the same thing (reading form DB and writing to cache) so this is acceptable.

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

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

More information about the jboss-user mailing list