Quick tip: managing Stateful EJBs in WebSocket endpoints
Quick tip: managing Stateful EJBs in WebSocket endpoints
@Stateful EJBs can be injected in WebSocket endpoints (supported by the WebSocket specification). There is an one-to-one association between the WebSocket client & endpoint (which is by default) as well as the injected Stateful EJB instance, which makes it an good candidate for storing client specific state. It offers advanced semantics as compared to simple java.util.Map interface exposed by get…
View On WordPress













