Results 1 to 2 of 2

Thread: Transaction handling in 3-tier layered application using Wicket + Spring + Hibernate

  1. #1
    Join Date
    Nov 2008
    Posts
    19

    Default Transaction handling in 3-tier layered application using Wicket + Spring + Hibernate

    Hi,

    I'm thinking about using the Open Session In View (OSIV) filter or interceptor that comes with Spring, as it seems like a convenient way for me as a developer. If that's what you recommend, do you recommend using a filter or an interceptor and why?

    I'm also wondering how it will mix with HibernateTemplate and if I will loose the ability to mark methods as @Transactional(readOnly = true) etc and thus loose the ability to get some more fine grained transaction control?

    Is there some kind of best practice for how to integrate this kind of solution with a three tier architecture using Hibernate and Spring (as I suppose my decision to use Wicket for presentation shouldn't matter much)?

    If I use OSIV I will at least never run into lazy loading exceptions, on the other hand my transaction will live longer before being able to commit by being uncommitted in the view as well.
    Last edited by Tnek; Feb 10th, 2009 at 02:17 AM. Reason: Bad formatting tags used

  2. #2
    Join Date
    Jan 2009
    Posts
    18

    Default

    Hello,

    Did you find a solution? What is your scenario?

    best regards

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •