Announcement Announcement Module

Spring Modules forum decommissioned in favor of Spring Extensions

As the Spring Modules project has been replaced by the Spring Extensions ( project, this forum has been decommissioned in favour of Spring Extensions one at:

Please see the Spring Extensions home page for a complete list of current projects in Java, .NET and ActionScript. You can also propose one if you want.

Costin Leau
SpringSource - Spring Training, Consulting, and Support - "From the Source"
See more
See less
Seems that BlockingCache isn't blocking and timeout doesn't work Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Seems that BlockingCache isn't blocking and timeout doesn't work

    I have cached method (EhCache) and it's using BlockingCache and timeoutMillis set to 1000. I've tested, that if there are simultaneous attempts to request the method with same key etc., these requests aren't waiting for the first request to finish. So it seems that BlockingCache really isn't blocking.

    Also, if I set Thread.sleep(2000) into the method, shouldn't timeout happen? The request is just waiting for 2 seconds and continues to process the method. I'm using Spring-Modules 0.9, Spring 2.5.5 and JDK 1.5.0_06.