Java Reference
In-Depth Information
in pieces. Using JSR-353, which was introduced with Java EE 7, it's easy to process and
generate JSON within encoders and decoders.
The WebSocket specification is vague when it comes to the integration of WebSockets
and Java EE. Some implementations, such as Tyrus ( https://tyrus.java.net ) support beans as
WebSocket endpoints or handlers. But given the special considerations of an endpoint, it's
better to use an EJB from a WebSocket endpoint than to expose an EJB as a WebSocket
endpoint.
WebSockets enable an entire new class of applications to be developed using Java EE. Pre-
viously, Java EE was primarily used to implement traditional web applications that used
stateless EJBs. With the advent of WebSockets, Java EE 7 applications can now support
single-page applications and talk directly with mobile applications running on iOS and
Android.
Search WWH ::




Custom Search