Java Reference
In-Depth Information
Our screenshot shows what happens after we click on the button labeled Get
Defaults . Text fields are populated with the values we got from the JSON-formatted
string we got from the server. At the bottom of the screenshot, we can see the output
of the values we sent to the browser log.
In this chapter, we covered how to develop Java EE applications using the new
WebSocket protocol. First, we examined a sample application using WebSocket
provided by NetBeans, examining its source code to better understand how to
write our own applications. We then applied that knowledge to develop our own
WebSocket application via the new Java API for WebSocket introduced in Java EE 7,
taking full advantage of NetBeans wizards to aid us in the creation of our application.
Search WWH ::

Custom Search