2 Replies Latest reply on Mar 20, 2006 9:34 AM by binario

    LazyLoadExceptions, Open Session in View & EJB3

    binario

      Hi all,

      I have been getting lazy load exceptions as described in

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=78867

      I've been investigating nice solutions to this and I came across the "Open Session in View" pattern. Here's a nice blog entry about it:

      http://www.jroller.com/page/cardsharp?entry=open_session_in_view_pattern

      Nice eh!

      Now, I thought this might be a good solution for my post above, but then I read that we can't really use "Open Session in View" in ejb3 in this very good post:

      http://www.jboss.com/index.html?module=bb&op=viewtopic&t=69519

      Now, I really think that ejb3 is great. It's easy, innovative etc, but I'm left feeling that if either the Open Session in View problem isn't fixed or unless I'm doing something really stupid over the lazy load exception, than this is a major flaw!

      By the way - I know that Seam fixes the "open session in view" problem but it's unrealistic to get everyone to change to this.

      thanks for any help.

      binario