• Post Reply Bookmark Topic Watch Topic
  • New Topic

Spring AOP around advice for Managing Hibernate Session

Shriram Gopalakrishnan
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to abstract Dao layer with all calls to create/close hibernate sessions to around advice using spring aop but want to know how would some of the hibernate CRUD api's utilize the session created by around advice for example:

Are we allowed to use session variable s in the method which was created by @around advice, If not what is the alternative to achieve this?
Acetylsalicylic acid is aspirin. This could be handy too:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!