• Categories
  • Search

Securing WebSocket applications on Glassfish

Today we are going to cover deploying secured WebSocket applications on Glassfish and access to these services using WebSocket Client API. WebSocket server application setup Our server endpoint might look as simple as this: @ServerEndpoint("/echo")public class EchoEndpoint { @OnMessage public String echo(String message) { return message + " (from your server)"; }} Everything else must be configured on container level. Wecan start with enabling SSL, which will require...

Friday, August 2, 2013 | Read More

Tyrus on GitHub - continued

Tyrus now uses GIT as primary source code repository, old SVN repository will stay online, but won't be updated. Main benefit here is that we have active GitHub mirror and we are able to use all of its features, so users can fork Tyrus "trunk" (master branch) or tags (released versions), make changes and create pull requests. We plan to use pull requests for our code reviews as well, so feel free to comment some changes or suggest improvements. Please note that Oracle Contribut...

Wednesday, July 31, 2013 | Read More

Tyrus 1.2

UPDATE - Tyrus 1.2.1 Tyrus 1.2.1 contains fix for TYRUS-222 Original post about Tyrus 1.2 Another release cycle is finished which allows me to present Tyrus in version 1.2. This version brings some bugfixes and features, for example improved Servlet integration, correct ByteBuffer handling when sending messages, improved client-side SSL ("wss://...") support and important fixed for handling of huge messages (client and server side). As previously - I will follow with more blog...

Friday, July 26, 2013 | Read More

WebSocket via HTTP proxy

As you might know, WebSocket can be used for bi-directional "real-time" communication with multiple clients. What does that mean in proxy environments and how this even works? WebSocket uses HTTP upgrade mechanism specified in HTTP 1.1 and by design requires open (TCP) connection. HTTP CONNECT is there for exactly these usecases. It is usually used for tunneling HTTPS via proxy, but it can be used for WebSocket as well. I will describe complete "proxified" handshake using...

Tuesday, July 16, 2013 | Read More

Tyrus on GitHub

Tyrus is now being mirrored to github. Pull requests currently cannot be accepted (one-way sync for now), but that will be improved over time. (Contributors are still required to provide patch, see https://tyrus.java.net/contribute.html) See https://github.com/tyrus-project/tyrus.

Wednesday, July 10, 2013 | Read More

WebSocket command line client

Tyrus 1.1 brings new feature - simple command line client, which can be useful in many scenarios. You can use it for simple development testing, sanity testing or for monitoring of your deployed endpoints. How to use: Download latest tyrus-client-cli binary (current version is 1.1): # you can use wget .. or anything else you like:wget http://search.maven.org/remotecontent?filepath=org/glassfish/tyrus/ext/tyrus-client-cli/1.1/tyrus-client-cli-1.1.jar -O...

Monday, July 8, 2013 | Read More

Visit the Oracle Blog


Contact Us


Integrated Cloud Applications & Platform Services