- 
        1. Re: postInitialization observer called several times (Seam 2.1.0.CR1)nickarls Oct 2, 2008 8:32 AM (in response to zeppelinux.dmitry.diligesoft.com)Not sure (one would think it is done once) but as a workaround you could have an application-level boolean 
 initialized (and check that the session is open) before doing any loading.
- 
        2. Re: postInitialization observer called several times (Seam 2.1.0.CR1)adlerauge Oct 2, 2008 10:59 AM (in response to zeppelinux.dmitry.diligesoft.com)I got the same problem that the org.jboss.seam.postInitialization event is triggered several times, but for me it happens during/after hot deployment. An application scoped boolean doesn't work out since the event gets called all the time and it never stops doing so. This means I should probably switch off hot deployment again? That would probably work out for me, but not for Dmitry I guess. Any solution someone? 
- 
        3. Re: postInitialization observer called several times (Seam 2.1.0.CR1)nickarls Oct 2, 2008 11:04 AM (in response to zeppelinux.dmitry.diligesoft.com)I guess hot deployment triggers org.jboss.seam.init.Initialize.redeploy 
 which runs org.jboss.seam.contexts.ServletLifecycle.endInitialization
 which runs Events.instance().raiseEvent(org.jboss.seam.postInitialization );
- 
        4. Re: postInitialization observer called several times (Seam 2.1.0.CR1)pmuir Oct 2, 2008 12:03 PM (in response to zeppelinux.dmitry.diligesoft.com)Bug, please report in JIRA 
- 
        5. Re: postInitialization observer called several times (Seam 2.1.0.CR1)nickarls Oct 2, 2008 12:14 PM (in response to zeppelinux.dmitry.diligesoft.com)Umm, me or someone who has actually seen the bug? ;-) 
- 
        6. Re: postInitialization observer called several times (Seam 2.1.0.CR1)damianharvey.damianharvey.gmail.com Oct 2, 2008 12:29 PM (in response to zeppelinux.dmitry.diligesoft.com)Reminds me of this closed bug. 
- 
        7. Re: postInitialization observer called several times (Seam 2.1.0.CR1)pmuir Oct 2, 2008 12:44 PM (in response to zeppelinux.dmitry.diligesoft.com)
- 
        8. Re: postInitialization observer called several times (Seam 2.1.0.CR1)adlerauge Oct 2, 2008 1:46 PM (in response to zeppelinux.dmitry.diligesoft.com)I think you guys were faster than I :) Thanks for your quick response guys! As Dan said here My Link 
 It get's cold around here without that hot deployment ;)I agree :) 
- 
        9. Re: postInitialization observer called several times (Seam 2.1.0.CR1)zeppelinux.dmitry.diligesoft.com Oct 2, 2008 8:56 PM (in response to zeppelinux.dmitry.diligesoft.com)just to clarify, for me (glassfish 9.1) it is called multiple times (more than 20) after total undeploy/deploy of war as well. 
 boolean did helped.
 Thanks!
- 
        10. Re: postInitialization observer called several times (Seam 2.1.0.CR1)etirk Oct 6, 2008 3:08 PM (in response to zeppelinux.dmitry.diligesoft.com)Old code handling org.jboss.seam.postInitialization for scheduling stopped working after upgrade from 2.0.3CR1 to 2.1.0CR1. In our case we have 3 beans. 
 First class A is application-scoped, stateful, and autocreated.
 It has a method that observes org.jboss.seam.postInitialization, standard stuff.
 It picks up an instance of another ordinary bean, B, which injects a bean C withcreate=true 
 .
 A then calls method scheduleDelete(...) on its fetched instance.
 Bean B has the methods that hook into quartz, ex:public class B { @In(create = true) private C c; @Asynchronous public QuartzTriggerHandle scheduleDelete( @Expiration Date when, @IntervalDuration Long interval, Date stoptime) { this.c.delete(); return null; } }Now what stopped working is that class C that has alot of injected objects; logger, entity-manager and some other application-scoped 
 beans, that now are all nulled out, thus injection seem to fail.
 This worked fine and they were all injected correctly before the version upgrade.Is it a bug or is 2.1.0 handling startup and initializing in some different way? /K 
- 
        11. Re: postInitialization observer called several times (Seam 2.1.0.CR1)pmuir Oct 6, 2008 3:29 PM (in response to zeppelinux.dmitry.diligesoft.com)Please try trunk, I fixed a bug here very recently 
- 
        12. Re: postInitialization observer called several times (Seam 2.1.0.CR1)etirk Oct 14, 2008 8:04 PM (in response to zeppelinux.dmitry.diligesoft.com)Tried to reactivate the old code again after a synchronize/build of seam 2.1 Trunk. Still no luck, sorry. Do you have enough info to persue this issue? /K 
- 
        13. Re: postInitialization observer called several times (Seam 2.1.0.CR1)pmuir Oct 14, 2008 9:39 PM (in response to zeppelinux.dmitry.diligesoft.com)
 Kristoffer Teuber wrote on Oct 14, 2008 20:04:
 Tried to reactivate the old code again after a synchronize/build of seam 2.1 Trunk. Still no luck, sorry.
 Do you have enough info to persue this issue?
 /KCan you file an issue in JIRA with a complete set of instructions to reproduce, as I get lost when we have a long thread like this ;-) 
 
     
     
     
     
    