Configure your EJB 3 with envirnoment entries using ENC

Very often you can read ” xml descriptors are dead with EJB 3 “. Well, it’s not exactly true. XML descriptors are not dead, they are optional (thank god). But there is still a very good and legitimate use for them when you want to configure an EJB. When you have an attribute in an EJB which value can change at deployment, you don’t want … Continue reading Configure your EJB 3 with envirnoment entries using ENC

XWiki tutorial

More and more customers are using wikis for collaborative work… and universities too. At the Cnam, where I teach, we felt the need of using a wiki. Our department installed MediaWiki last year but the administrator didn‘t set up the rights properly so it was a real nightmare for teachers to have access to the right resources. A couple of month later, nobody was using … Continue reading XWiki tutorial

Container Managed Transaction, EJB 3 and Exceptions

Let‘s face it. Exceptions in Java have always been a nightmare because we‘ve never known how to handle them properly. Hundreads of articles and thousands of blogs have tried to help us on “how to use exceptions in Java“. We went from “all exception should be checked“ to “all shoud be unchecked“ and then to “business exception should be checked and technical exceptions unchecked“, “each … Continue reading Container Managed Transaction, EJB 3 and Exceptions

Container Managed Transaction – Mind the interface

We‘ve been using EJBs for a long time now and, thanks to Java EE 5, it‘s today even easier to do so. What happens when you are comfortable with something ? You forget the basics. And the basics are, J2EE 1.4 or Java EE 5, an EJB runs inside a container. This container can do a lot for you, transactions for example, but you have … Continue reading Container Managed Transaction – Mind the interface

I am now an Expert Member of the JCP

The Java Community Process or JCP, established in 1998, is a formalized process which allows interested parties to be involved in the definition of future versions and features of the Java platform. For a long time it has been closed to big companies, but now it’s opened to individuals. As I am passionate for the Java EE platform, I’ve applied to be a member of … Continue reading I am now an Expert Member of the JCP

Java EE 5 Book

Presentation

Java Enterprise Edition appeared end of the Nineties and brought to the Java language a robust platform for companies’ enterprise applications. Put into question on each new version, badly understood or misused, competed by open source frameworks, Java EE knew to use these criticisms to improve and find a balance in its version 5. This book proposes to discover the innovations of this new version, and to examine how to assemble them to develop an e-commerce website.

The objective of this book is to guide you in the development of a complete e-commerce website using Java EE 5, while answering the question “how to assemble these specifications? “. The application, inspired from the Java PetStore of Sun, follows the coding and architecture best practices: layers, loose coupling, and enterprise design patterns.

Continue reading Java EE 5 Book

Java EE 5

Présentation

Java Enterprise Edition est apparu fin des années 90 et a apporté au langage Java une plate-forme robuste pour les applications d’entreprise. Remise en cause à chaque nouvelle version, mal comprise ou mal utilisée, concurrencée par les frameworks open source, elle a su utiliser ces critiques pour s’améliorer et trouver un équilibre dans sa version Java EE 5. Ce livre propose de découvrir les nouveautés de cette nouvelle version, et d’examiner comment les assembler pour développer un site de commerce électronique.

L’objectif de cet ouvrage est de vous guider dans le développement d’un site complet de commerce électronique en Java EE 5, tout en répondant à la question « comment faire pour assembler ces spécifications ? ». L’application, inspirée du Java PetStore de Sun, suit les règles de l’art en matière d’architecture : découpage en couches, couplage lâche, et design patterns d’entreprise….

Continue reading Java EE 5

Java EE version history: Help Needed !!!

I was trying to do a study about the evolution of Java in terms of the langage (how many versions, how many APIs in each version, main features…), its popularity (how many book written in the last 10 years, evolution of the market, job offers in the last 10 years…), its enterprise version (versions of J2EE, how many specifications in each version…)… but I‘m giving … Continue reading Java EE version history: Help Needed !!!

Article: Generate an XML Document from an Object Model with JAXB 2

I‘ve just published an article about JAXB 2 on DevX web site. JAXB (Java Architecture for XML Binding) allows you to perform XML-to-Java data binding and generate Java classes from XML schemas and vice-versa. But in this article I mainly focus on marshalling (generate XML from Java objects). You will see how easy it is to generate XML without doing much (thanks to coding by … Continue reading Article: Generate an XML Document from an Object Model with JAXB 2

Java EE 5 at the Sun Tech Days in Paris

During the Sun Tech Days2007 in Paris there was a GlassFish user group conference. There I made a presentation about Java EE 5. Based on my book I explained how a JSP could talk to an EJB 3 using JSF and JPA. You will a little more details about the event on my blog.

During this event I met the developpez.com team. For those who don’t know it developpez.com is a very famous french website for developpers. Vincent Brabant interviewed me and Emmanuel Puybaret who wrote a couple of good book about Java and Swing. Continue reading Java EE 5 at the Sun Tech Days in Paris

Article: Persistence Pays Offs: Advanced Mapping with JPA

Few weeks ago I blogged about JPA and how I believe it will be the future of ORM. After a first article introducing basic concepts, I wrote a second one for DevX showing how to use JPA to map inheritance, one-to-many, and many-to-many relationships. And also a little bit more of query language (JPQL) to query concrete and abstract classes. Continue reading Article: Persistence Pays Offs: Advanced Mapping with JPA

Java Black Belt will be at university

Few weeks ago I‘ve posted about trying Java Black Belt at the University to test the level of our students. We made 40 students take 3 exams (JSP, Servlet and EJB) and got their feedback. Being French students we had some “I didn‘t understand every questions”. We decided not to take that into account because engineering students should have a good technical English understanding. Some … Continue reading Java Black Belt will be at university

Why is JavaPolis so cheap (or why are IT conferences so expensive)

I‘ve been playing a bit with Groovy and I‘ve attended a Grails presentation done by Guillaume Laforge back in January. I thought it was really good and when he mentioned the Grails conference in London I thought “Let’s go! The conference is in May, just during my birthday, I love London, I have plenty of friends there, it would be a good oportunity to know … Continue reading Why is JavaPolis so cheap (or why are IT conferences so expensive)