Securing JAX-RS Endpoints with JWT


In this blog post I’ll show you how to use the JJWT library to issue and verify JSon Web Tokens with JAX-RS endpoints. The idea is to allow an invocation when no token is needed, but also, be able to reject an invocation when a JWT token is explicitly needed. Let’s say we have a REST Endpoint with several methods: methods that can be […]

Read More →

Just Enough App Server with WildFly Swarm


Application Servers have changed a lot: consuming less memory, being faster at startup time… Now it’s time to change the way we package our applications: from Ears, to Wars, and now to executable Jars. This is what I explained in this “Just Enough App Server” talk I gave at few conferences lately. So if you want to know more about Application […]

Read More →

O Java EE 7 Application Servers, Where Art Thou?

Startup Time

Updated Thanks for your comments. I’ve added Undertow to the test ( “Servlet-Only Distribution” on the WildFly download page), corrected some mistakes, but more important, I’ve changed the memory benchmark: I now take a memory usage measure at startup, I then perform GC and wait a bit for memory to stabilize. This gives a nice min and max memory usage. Damn, I’ve […]

Read More →

CDI and Forge Talks in Europe and Morocco


Are you going to JavaOne? Well I’m not! But instead I’ll be doing some talks in October and November in Europe and Morocco. Four years ago I toured central Europe giving CDI talks. Next week I’ll start another tour with CDI and Forge talks. Here is my schedule : Tuesday 20th of October – JUG Frankfurt (Map) : Talk on JBoss Forge […]

Read More →

Who Cares About toString Performance?


Who cares about toString performance? Nobody! Except when you have huge amount of data being processed in a batch that does plenty of logging using toString . Then, you investigate why it’s slow, realize that the toString method is mostly implemented using introspection and can be optimized. But first, let’s have a look at the Javadoc to remember what a Object.toString should […]

Read More →