Bean Validation with JPA 1.0

For those of you who still don’t know Bean Validation, you should check the JSR 303 and the documentation of the reference implementation Hibernate Validator. In fact, like many other JSRs, Hibernate Validator existed on its own for quite a long time as an open source project (until version 3.1.x) and then got specified under the JSR 303 and became the reference implementation from its … Continue reading Bean Validation with JPA 1.0

O Application Servers, Where Art Thou?

With Java EE 6 and GlassFish v3 out, it is time to take a little break and look at the application server world. J2EE 1.2 was created in 1999, that’s 10 years ago. The application server market at the time was completely different of the one today. There was Weblogic and Websphere, other proprietary application servers (not following J2EE) and no open source application server. … Continue reading O Application Servers, Where Art Thou?

Mapping and querying a list of primitive types with JPA 2.0

Sometimes you just want to map a list of primitive types. For example, a Book entity has a list of tags and tags are just strings. So you want to do the following : [sourcecode language=”java”] @Entity public class Book { @Id @GeneratedValue private Long id; private String title; private Float price; private String description; private String isbn; private Integer nbOfPage; private List<String> tags = … Continue reading Mapping and querying a list of primitive types with JPA 2.0

Because I always forget how to use maven-ear-plugin

Sometimes you write a blog to express an idea, to ask some feedback from the community, to share a very nice trick… or because you always forget something and want to write it down so you can remember later on. That’s the reason of this post. I never remember how to use the maven-ear-plugin, so I’m writing it down. There is something funny with Maven … Continue reading Because I always forget how to use maven-ear-plugin

Are students getting brainwashed to become project managers ?

As we all know, the percentage of IT projects that succeed is very low, and this post doesn’t have the pretension to explain you why. The reasons are multiple and complex. But there is one that we all know about and live on our day to day jobs : IT projects are mostly made of junior developers and tons of unexperienced managers. Well, at least … Continue reading Are students getting brainwashed to become project managers ?

An interview about me, Java EE 6, the JUG, the JCP and some Jazz

A few weeks ago, Alexis Moussine-Pouchkine asked me for an interview. My book has been out for a couple of month now, Java EE 6 is getting hot, GlassFish V3 is closed to final, the Paris JUG is doing well, I’ve recently been nominated Java Champion, JSR 299 and 330 are working hand in hand, the Cast Codeurs podcast is a success, summer and vacations … Continue reading An interview about me, Java EE 6, the JUG, the JCP and some Jazz

Derby 10.5.1.1 is really an in-memory database

Up to Derby 10.4.2.0, the in-memory database mode wasn’t a real one because data was stored into files onto your disk. The new 10.5.1.1 supports a real in-memory mode were data is only stored in memory, with no files being created. As stated in the new features page : Initial implementation of a storage engine for Derby where all data is kept in memory. There … Continue reading Derby 10.5.1.1 is really an in-memory database

JPA 2.0 : standard properties in persistence.xml

As you might know with JPA, the META-INF/persistence.xml file defines a persistence unit with some provider’s properties. For example, if you are using JPA in a Java SE environment, you will have to define the JDBC driver, database connexion (user and password), database URL and so forth. In JPA 1.0 these properties were not standard, so for each persistence provider you would have to use … Continue reading JPA 2.0 : standard properties in persistence.xml

High availability. What does it exactly mean ?

Maybe like me you are used to read architecture documents that state that an application should have high availability. It’s not uncommon to read that an application should have four-nine availability (99,99%). But what does it really mean ? In the JBoss in Action book there is a very clear explanation by giving the allowed downtime per year. Here is the table : Uptime Allowed … Continue reading High availability. What does it exactly mean ?

Copying resources to JBoss with Maven (and Antrun)

On my previous post I explained how painful it was to copy resources (files, librairies…) with Maven and the maven-resources-plugin. And guess what ? I received 2 emails from Maven lovers telling me that for this kind of task, Antrun would be more appropriate. So I thought I should give it a try to be fully honest with me, Maven, and God (you need a … Continue reading Copying resources to JBoss with Maven (and Antrun)

Dédicace du livre Java EE 6

Aujourd’hui, les exemplaires du livre Java EE 6 sont enfin arrivés en Europe. J’ai reçu ma petite collection privée de 20 exemplaires ainsi que tous les bons libraires informatiques parisiens. Alors, si vous faites partis des quelques rares qui n’ont pas encore ce best-seller, je vous propose de nous retrouver samedi 20 juin à la librairie Le Monde En Tique de 15h50 à 18h pour … Continue reading Dédicace du livre Java EE 6

JSR 330

Just a quick news. For those of you who have followed the entire debate between JCDI (Java Context & Dependency Injection, aka Web Beans) and @Inject, you will be pleased (or not) to know that there is a brand new JSR : JSR 330 Dependency Injection for Java. I hope we are not starting a new battle like the one between Java Module (JSR 277), … Continue reading JSR 330

Bienvenu chez le Ch’ti JUG

Dans la famille Présentation Java EE 6, je voudrai les Ch’tis. Qques jours après mes présentations GlassFish et Java EE 6 à la conférence GeeCon à Cracovie, ce soir je me suis rendu à Lille pour présenter les nouveautés de la future plateforme entreprise. Dernier en date de la longue lignée des JUGs français, le Ch’ti JUG était inauguré ce soir en grandes pompes : … Continue reading Bienvenu chez le Ch’ti JUG

Présentation Java EE 6 au Ch’ti JUG

2008, c’était l’année de Bienvenue chez les Ch’tis. 2009 c’est l’année du Ch’ti JUG. Mais non, je ne ponctuerai pas ce post de “biloute”, ‘j’te dis quoi” et autres “heiiinnnnn!”. En fait, je veux juste vous informer de l’événement del ch’nord (ha, je me suis laissé aller là) à ne pas louper : une présentation sur Java EE 6 pour l’inauguration du Ch’ti JUG. Hé … Continue reading Présentation Java EE 6 au Ch’ti JUG