0

I would like to use Omnifaces Socket as an alternative solution for Primefaces Push which is on the way to remove in the future. I already checked the showcase(http://showcase.omnifaces.org/push/socket) and found that it needs the CDI to init the PushContext. unfortunately, the framework, we are working on, CAN NOT support CDI, so: is there any chance that we can use the Omnifaces Socket without using CDI? If not can you suggest me another solution to implement Websocket instead of PrimefacesPush?

Thank you in advance!

Nhung Ngô
  • 11
  • 1
  • As Socket is available since omnifaces 2.3 and omnifaces 2.x requires CDI, I don't think there will be a clean solution for using socket without CDI. What's your runtime environment? Maybe the servlet container already provides websocket capabilities? – Selaron Oct 24 '18 at 06:18
  • the framework use Tomcat @Selaron I'm on the way to try [IcePush](http://www.icesoft.org/java/projects/ICEpush/overview.jsf) hope it work :D Thank you – Nhung Ngô Oct 25 '18 at 02:02

0 Answers0