How do I combine @Asynchronous and Weld/CDI Events and @Observes(during=TransactionPhase.AFTER_COMPLETION) in Glassfish 3.1 -


first of let me state, following code example worked fine in gf 3.0.1. troubles started when switched gf 3.1.

i'm using method

@asynchronous public void executeflowstep(     @observes(during=transactionphase.after_completion)      executeflowstepevent executeflowstepevent) {  

since switch, whenever should receive executeflowstepevent following error message:

weld-000401 failure while notifying observer of event [package].executeflowstepevent 

no further information or stacktrace given. works if remove @asynchronous annotation , after_completion attribute, of course breaks program depend on after_completion timing.

i tried ask on weld forums, far no avail, although there seem other people same problem: http://seamframework.org/community/weldusers

i @ least know: bug, or wanted. imply weld not work asynchronous methods/after_completion attributes? why did work in gf 3.0.1? has managed make work on gf 3.1?

according link posted comment own question, bug fixed in wield 1.1.2 , glassfish 3.1.2 (build 14+).

disclamer: posted answer age old question (stackoverflow) rid of unanswered questions.


Comments