WELD-862 and Seam Cron
by Peter Royle
Hi,
I'm aiming to make a release of Seam Cron available within the next two weeks. Currently there is an outstanding issue (https://issues.jboss.org/browse/WELD-862) which prevents Cron from running properly with Weld. I have been able to carry on developing Cron by testing it against OpenWebBeans, but obviously if we are to release a Seam module it should work against Weld.
It would be nice if WELD-862 could be fixed as soon a possible so that all future versions will work well with Cron.
But more importantly I also probably need to do something special in Cron so that it will work with the version of Weld already deployed in JBoss AS and Glassfish, which will contain the bug. The workaround mentioned in the bug report is to deep copy the InvocationContext. I attempted to do this by serialising and unserialising the InvocationContext but couldn't due to UnserializableExceptions. Does anyone have any advice for me about how I might be able to work around this bug to support existing versions of Weld?
Cheers,
Pete R
5 days, 8 hours
PostConstruct & PreDestroy in Java SE
by Kristoffer Sjögren
Hi
We're running Weld 2.0.3.Final in a Java SE environment and have
encountered a precarious situation where it seems like Weld is not
consistent in handling the lifecycle of singleton beans.
We have singleton beans with @PostConstruct and @PreDestroy methods. During
Weld.initialize() all @PostConstruct methods are called. But during
@PreDestroy methods are never called during Weld.shutdown(). @PreDestroy is
only called on beans which are @ApplicationScoped.
Is this according to specification or a bug?
Cheers,
-Kristoffer
12 years, 4 months