Do CDI Events observed across session scoped JSF backing beans

前端 未结 2 740
情歌与酒
情歌与酒 2020-12-29 11:03

I\'m wondering if it is possible to observe a CDI event with multiple JSF 2.0 session scoped backing beans. I thought that I could push event/data to multiple sessions by ob

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-29 12:00

    I've found that all registered observers are fired.

    Most notably if I have an observer on a Conversation Scoped bean and that bean is not active in the current Conversation then, when the event is fired, a new instance is created specially to receive it!

提交回复
热议问题