Sven Haiges wrote:
Hi Ian,
thanx a lot for your reply. Yes, HibernateInterceptor looks very
promising. I just read somewhere that there are some issues around
AOP and cxf, but maybe those were related to an older version. Are
you using thisi approach rigth now in your apps?
It should work fine as long as you specify the
implementorClass="name.of.the.real.Impl" as well as the
implementor="#aopProxy".
Also, as you seem to be knowledgeable about Hibernate / Spring: can I
still use HibernateTemplate the same way? I would assume that
HibernateTemplate in this case picks up the Session opened by the
Interceptor?
As long as your HibernateTemplate isn't set up to alwaysUseNewSession
then yes, the template will pick up the interceptor's session.
Ian
--
Ian Roberts | Department of Computer Science
[EMAIL PROTECTED] | University of Sheffield, UK