This content has been marked as final.
Show 2 replies
-
1. Re: CDI Events
alesj May 10, 2012 10:51 AM (in response to gboro54)I don't see what could go wrong.
You fire an event in your current thread, and the observers use the same thread.
-
2. Re: CDI Events
alesj May 10, 2012 10:54 AM (in response to alesj)You fire an event in your current thread, and the observers use the same thread.
I mean, Weld / CDI doesn't do anything special about it -- you can call that non-thread safe if you like.
e.g. if your observers are statefull, there of course might be issues