Book review: Dependency Injection by Dhanji Prasanna

Over the last few days, I have been reading Dependency Injection by Dhanji Prasanna published by Manning. I must admit, this is a much easier task than writing Hibernate Search in Action

Summary first: very easy to read, a gold mine of knowledge and tips on a subject that is essential to the life [...]

Lies, damned lies, and statistics: EE edition

I came across some figures regarding downloads of Glassfish and JBoss AS that really puzzled me. Basically Glassfish was downloaded 700.000 times a month (end of ‘08) while JBoss AS was only downloaded around 115.000 times a month at the same. My first reaction was “Well done to you, Sun!” and then I realized that [...]

Java generics end of mystery

Remember my puzzlement in front of http://blog.emmanuelbernard.com/2009/04/java-generics-mystery.html?

I usually try to make sense of the unknown type by looking at what should be allowed when two incompatible types are used as the unknown type, and then using the generic type using the unknown type as a reference to a known type to see what incorrect things [...]

Java generics mystery

Here is a puzzle for Generics gurus.

Can somebody explain why

Set<Address> addresses = new HashSet<Address>();Set<?> things = addresses;

compiles but

Set<ConstraintValidator<Address>> validatedAddresses =     new HashSet<ConstraintValidator<Address>>();Set<ConstraintValidator<?>> validatedThings =    validatedAddresses;

does not compile?

More specifically, the assignment on the second line breaks.

Oracle is buying Sun: best quotes of the day

Alex Miller: “Next version of Java will be Java SE 7.0.0.0.17832″

Emmanuel Bernard: “The day an Oracle swallows the Sun and in front the Business Machine. No kidding it’s a Titans fight.”

Max Andersen: Thinking when Orsun will introduce a String in Java that says null == “”

Alexis MP: “Checking my blog posts tagged with “oracle”. No [...]

Les Cast Codeurs Podcast is born

I have just started a new podcast with a few French open source activists. All about Java, all in French. If you know French, read on ; otherwise, well… learn

Les Cast Codeurs Podcast est dans les bacs!

Le podcast en français dans le code sur Java par Emmanuel Bernard (JBoss, Hibernate), Guillaume Laforge (SpringSource, [...]

Podcast on Bean Validation lastest PFD

I have recently been interviewed by Kenneth Rimple for the Chariot TechCast.

In this podcast, we speak to JBoss’s Emmanuel Bernard on the future of validation using JSR-303, the Bean Validation framework. JSR-303 aims to provide an annotation-driven mechanism to mark plain old java beans with annotations, such as @NotNull, @Min, @Max, and can support custom [...]

DevNexus: human friendly conference March 10-11 in Atlanta

I will be speaking at DevNexus. This small conference is a spin off the Atlanta Java User Group.

Here are a few things I like about the conference personally:

There is around 10 presentations over two days, so you will be able to see all / most of them.
The price is very reasonable ($150 for early birds), [...]

JarInspector on Mac OS X

There is a tiny little utility that let’s you inspect JAR/WAR/EAR files on the Mac OS platform. The software is available here. Install it. To open a JAR, simply right click and chose JarInspector as the application. I personally did not set JarInspector as my default .jar application to let the default JAR launcher kicks [...]

Innovation in the Log space, yawn…

Steve and I had a discussion yesterday about loggers. I know what you’re thinking: hasn’t log been a solved problem for years now? Plus it’s boring That’s why usually, when a discussion starts on the subject, I tend to carefully not listen. But because it’s Steve, and because he has some specific requirement for [...]