Based on your scheduler settings, the service should be invoked once in every 2 hours.
This is exactly what's happening in the log above, so that's fine.
BUT! In your ''ehcache.xml'' the cache content lives for 14400 secs (that
is 4 hours). So even if the service is invoked by scheduler, that will return the same
cached object for 2 iterations! (However, it should happen only twice, for the third try,
you should get a new result... Don't really understand.)
Anyway, could you try setting diskPersistent="false" and
timeToLiveSeconds=''3600" (1 hour) in your ehcache.xml and restart the
container?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3959929#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...