4 Replies Latest reply on Mar 4, 2010 5:15 PM by get boa

    Injection of hibernate session + ScopeType.PAGE

    get boa Newbie

      Hi,
      if i inject a hibernate session in an action class with the ScopeType.PAGE, when would it would be closed?
      I've got a query method which populates a List and iterates(just for tests) some values  printing in the output... so far so good, these brought values are printed on output properly,  but the goal ain't that but to iterate it on my page, unfortunately an exception is thrown.
      org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:187)
      so it might be due to session closed, right?
      my doubt is, when the session is no longer available?