13 Replies Latest reply on Oct 14, 2008 9:39 PM by pmuir

    postInitialization observer called several times (Seam 2.1.0.CR1)

    zeppelinux.dmitry.diligesoft.com

      Hi,


      I have some problem with the method registered as an @Observer for org.jboss.seam.postInitialization event.
      It loads the Set of entities that should be accessible in Application context and it is called by multiple threads several times.
      Sometimes the call succeeds and sometimes it fails with org.hibernateSessionException: Session is closed! or PersistentException.
      From the documentation I have the impression it should to be called only once, shouldn't it?