Back Forum Reply New

HibernateInterceptor and AspectJ

Is there a way to weave org..orm.hibernate3.HibernateInterc  eptor with AspectJ instead of Spring AOP?

Or is there an equivalent AspectJ implementation available somewhere?

what are you trying to do exactly, i.e. why are you weaving hibernate interceptor?

It's for the standard pattern of having a thread local Hibernate session for each request, to enable lazy loading.  I have a message-driven Java application that uses Hibernate together with Spring transactions. Since it's not a web app I can't use the typical OpenSessionInView filters etc, and found HibernateInterceptor as an alternative.

I'd prefer to use AspectJ to Spring AOP since it's the AOP solution I'm using for other purposes.
¥
Back Forum Reply New