Inject Omnifaces PushContext in a bean managed by Spring

柔情痞子 提交于 2021-02-10 15:06:12

问题


I have an JSF app running on WildFly 10 and Primefaces 6.2 and Omnifaces 2.6.2.

My Beans are managed by Spring like this:

@Controller
@Scope("session")
public class CompanySelectionController implements Serializable {

I'm trying to implement Omnifaces WebSockets However when I try to inject PushContext like below:

@Inject @Push
private PushContext someChannel;

it says "No qualifying bean of type [org.omnifaces.cdi.PushContext]"

What should I do in this case?

来源:https://stackoverflow.com/questions/49306548/inject-omnifaces-pushcontext-in-a-bean-managed-by-spring

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!