Do CDI Events observed across session scoped JSF backing beans

前端 未结 2 744
情歌与酒
情歌与酒 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 11:58

    First, you'd better specify the type of the event:

    @Inject
    private Event events;
    

    Apart from that there is no indication in the spec that would limit the bean instances on which the observer method is invoked. I'd file an issue about this (in the bugtracker of the implementation you are using. Perhaps Weld?)

提交回复
热议问题