Tag Archives: client

JAX-RS 2.1 Reactive Client API

I’m happy to announce that I was selected to replace Marek as JAX-RS co-spec lead. Meaning that I’ll have something to blog about during next moths, most likely until JavaOne 2017. If you are following discussions within┬ávarious specifications, you might … Continue reading

Posted in java | Tagged , , , , | Leave a comment

WebSocket Client API – Java 8

Since Java 8 was released, lots of new or reworked APIs emerged, simply because Java 8 is really evolutionary step in Java language specification and it is definitely worth to update the APIs to enable newly added features. Unfortunately, Java … Continue reading

Posted in java | Tagged , , , , | Leave a comment

Reducing WebSocket client jar size with ProGuard

We already know there is a demand for standalone web socket client runnable even on different platforms than just Java EE or Java SE – Tyrus publishes client runtime all-in-one bundles for Java 6 (works on Android!) and Java 7+ … Continue reading

Posted in java | Tagged , , , | Leave a comment

WebSocket Client Reconnect

Another new feature was recently added to Tyrus (Java API for WebSocket Reference Implementation): Client ReconnectHandler. Some client use cases require almost persistent client-to-server connection and don’t really care about lower layer issues, like unstable internet connection. Tyrus Client now … Continue reading

Posted in java | Tagged , , , | Leave a comment

WebSocket Client on Android – Tyrus

Running some Java EE libraries or frameworks in non-standard VM is not an uncommon task and same is for Tyrus. I have to admit that this task was driven mainly by issue report TYRUS-256 from Reza. There is no official … Continue reading

Posted in java | Tagged , , , | Leave a comment

Tyrus client – shared container

Current “trunk” version contains one notable feature – shared client container. It can save significant portion of resources on client side if you are creating lots of client connections and there is almost no drawback. This feature was added as … Continue reading

Posted in java | Tagged , , , | Leave a comment

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 … Continue reading

Posted in java | Tagged , , , , , | Leave a comment

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 … Continue reading

Posted in java | Tagged , , , | Leave a comment

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 … Continue reading

Posted in java | Tagged , , | Leave a comment

Jersey non blocking client

Although Jersey already have support for making asynchronous requests, it is implemented by standard blocking way – every asynchronous request is handled by one thread and that thread is released only after request is completely processed. That is OK for … Continue reading

Posted in java | Tagged , , | Leave a comment