How to enforce springcache to execute before transaction manager?
This post has NOT been accepted by the mailing list yet.
Hi,
I'm trying to figure out how to force springcache aspects on service methods to execute before GrailsHibernateTransactionManager.
Is this possible to do it declaratively, or somehow through configuration?
Tnx
@Aspect
@Order(value=100000) // This line is added. value can be any integer smaller then Ordered.LOWEST_PRECEDENCE
class CachingAspect implements ApplicationContextAware {
...
With all this in place, caching aspect is executed before transaction aspect.