Spring Boot JSF 2.3 with JoinFaces Websocket

993 Views Asked by At

Has anybody implemented JSF 2.3 + Spring Boot + Websockets? I am using JoinFaces and I am trying to enable end-to-end implementation with WebSockets using the new tag provided by JSF 2.3.

I have found some answers using JSF 2.2 with proprietary sockets implementation (for instance, Primefaces https://github.com/elitcenk/Primefaces-Websocket-using-SpringBoot).

Looking at the issue below, it makes me believe that trying to implement the JSF 2.3 WebSockets won't lead me anywhere: https://jira.spring.io/browse/SPR-17202

After investigating JoinFaces code, I was able to find the following property to enable the WebSocket inside JavaxFaces2_3Properties.java:

jsf.javax.faces.ENABLE_WEBSOCKET_ENDPOINT=true

However, beyond setting up this property, it looks like that JoinFaces does not support Spring injection of Websockets.

0

There are 0 best solutions below