Ok I checked on the SE Guess example in the distro and it has the same behavior as explained above
Is this a bug or not?
How is the JSF version behaving on this point?
Uhmm, don't know, going to sleep now but will have a look tomorrow.
Still not sure about the jsf version's behavior (waiting for jboss6 to download) but I have spotted the ShutdownManager class.
@Inject ShutdownManager shutdownManager;
and then call
before the main thread exist.
This inturn calls the @PreDestroy methods of ApplicationScoped objects.
Ok, another way I spotted now,
@Inject @Shutdown Event<BeanManager> shutdownEvent; @Inject BeanManager beanManager;
and the before the mail thread exist call,
I'll try to have a look at the double-instanciation thing over the next week, and will double-check the documentation to see if I can't clarify the use of the ShutdownManager.