Java EE 7: Accessing WebSockets From Plain Java
Java EE 7 also comes with a standardized WebSockets client (part of JSR-356), which can be directly used in Java applications like Swing, JavaFX or Unit Tests to access remote WebSockets.
With a little help of Java EE 7, both sides can be implemented in < 9 mins :-):
See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.
See you at Java EE Workshops at Munich Airport, Terminal 2 or Virtual Dedicated Workshops / consulting
thankyou for your demonstration
I am recently working with java so I try to understand haw it works or to write a program. Thankyou for your helpe
Posted by matrouh salwa on February 07, 2015 at 05:52 PM CET #
The problem is, if you want to have a web browser as a client over the Internet, such server won't be of much use. You have to deal with all fallbacks, proxies etc.
I will work on an application that will use web sockets in the near future. Can you recommend any framework "above" web sockets that would do all the plumbing? At the moment we are leaning towards Spring WebSockets (with STOMP and SockJS), we have tested Atmosphere (poor experience), can you recommend anything else?
Posted by glizniewicz on February 10, 2015 at 04:56 PM CET #