I’ve recently posted a Tweet about my day to day life. This Tweet said “I’ve reached a point where I can test Spring code in a couple of minutes, and Java EE code in a couple of hours :o(“ I was a bit surprised to read some reactions. In fact, some people asked me to explain this Tweet a bit more… so here I am. … Continue reading Java EE vs Spring Testing
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 invoked directly, and methods that … Continue reading Securing JAX-RS Endpoints with JWT
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 Servers today, you can watch … Continue reading Just Enough App Server with WildFly Swarm
The developers’ world is a mixture of evolutions and reinventing the wheel. When I was doing EJBs 1.0 back in 1998, I was doing Micro Services. But I had to wait 2014 for someone to give it a name, and 2016 to see it officially arriving in Enterprise Java. So here we are: a Micro Profile has been announced for Enterprise Java. What? A Micro Profile! For … Continue reading “Micro Profile in Enterprise Java” Announced !
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 been waiting so long to … Continue reading O Java EE 7 Application Servers, Where Art Thou?
If you are interested in JBoss Forge, you should check out this 50 minutes talk I gave at Devoxx UK. You can also get the slides and the code. Talk in English Slides 50 new features of Java EE 7 in 50 minutes from Antonio Goncalves Continue reading 50 minutes to develop a full Java EE application with Forge? Is that all?
Very often, when talking/training/sharing about Java EE, I get the same question: What about clustering in Java EE? The answer is: nothing, rien, nada, ezer, nista, niets! There is nothing about clustering (failover, load-balancing…) in JavaEE. And to prove it, I’ve looked for the word “cluster” in the 4.171 pages of the 19 more important Java EE 7 specifications. The word “cluster” only appears once : EE.5.2.2 – Application … Continue reading There Is No “Cluster” in Java EE