Author Archives: Dark Savant

JAX-RS 2.1 Server Sent Events

If you find this post better-worded (and grammatically correct) compared to the usual standard on this blog, its because the text below is part of the proposed JAX-RS 2.1 specification, which was authored by Santiago :) If you want to provide … Continue reading

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

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

WebSocket vs REST

As controversial or potentially “flame starting” topic this might seem to be, don’t worry. I will approach this purely from pro-WebSocket view and the comparison with REST will be done on the sample, which heavily favours WebSocket ;) Not that … Continue reading

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

Simplest picture gallery (bash, convert)

This is more for me than for others, I just thought someone else could also use it ;) The result is just a basic gallery, but surprisingly, it works and it does not screw pictures like facebook and others sharing services. … Continue reading

Posted in other | Leave a comment

Why Checkstyle matters…

I’ve read something about ZeroMQ and its java clone recently and decided I should give it a try. JeroMQ is quite small project (same as ZeroMQ I guess), so I decided to checkout the sources directly, since that usually gives … Continue reading

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

Tyrus 1.10

Tyrus 1.10 is a maintenance relase, so unfortunately no cool new features to highlight, but we were able to add some new examples – Shared collection and BTC Xchange. Complete list of fixed issues is below. I would like to … Continue reading

Posted in java | Tagged , , | Leave a comment

Is WebSocket Session really thread safe?

Todays article would be about one simple use-case of JSR-356: Java API for WebSocket. This was brought to my attention by Mark Thomas, who started relatively long thread on the jsr356-experts mailing list. The described problem can be simplified to following code: … 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

New Tyrus sample – Shared Collection

Sometime in JavaOne 2014 timeframe colleague came to me and showed me Meteor.js library, which seems to be really nice javascript framework, client and server side (kudos to the authors!). I started looking at the docs and examples and discovered leaderboard sample. … Continue reading

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