-
1. Re: @Schedule and @RequestScoped beans
napu Apr 13, 2012 7:11 AM (in response to sebek64)No help here, but I noticed the same today (when producing JMS resources).
The @Disposes method works when the @RequestScoped annotation is removed (but then the producer does not work as intended).
-
2. Re: @Schedule and @RequestScoped beans
maxusoltsev Nov 15, 2012 2:12 AM (in response to napu)I'm also getting same behavior not only for @Schedule method, but for onMessage() method of @MessageDriven bean too. (JBoss AS 7.1.1.Final "Brontes")
Also @PreDestoy method not invoked for @RequestScoped beans.
Is there any workaround for this situation ?
Maybe we can somehow start and finish "request" programmatically so weld will call all needed (@PreDestroy, @Dispose) methods ?
-
3. Re: @Schedule and @RequestScoped beans
mkouba Nov 15, 2012 5:19 AM (in response to maxusoltsev)Hi,
this is a know issue in AS7 integration component - the request context is not destroyed properly, that's why neither the disposer method nor the predestory callback is invoked - see AS7-4280. AFAIK this affects asynchronous methods as well.