JMS with Weblogic Server and EJB MDB

Here is a complete and short example of asynchronous development using JMS and a Message-Driven Bean (MDB). First the procedure to configure inside Weblogic Server a JMS server in order to create a queue, then the code for the producer/sender of a message to the queue and then the code for a consumer (MDB). 1) … Read more

Eclipse Dali vs Hibernate Tools

The process of mapping tables to entities is greatly simplified with tools like Eclipse Dali and Hibernate Tools, both available as Eclipse plugins. It avoids mapping them by hand, which in my opinion is prone to mapping errors and takes more time. And I really do not see why one should map them by hand when great tools like Eclipse Dali and Hibernate Tools are available.
In my book, I describe the use of the Eclipse Dali plugin to automatically generate the entities.
Lately I have also used Hibernate Tools and I have already noticed a few differences between these two tools.
I am going to list some of these differences.

Read more

Enterprise JavaBeans 3.1, sixth edition, available now

I just noticed that the sixth edition of the book Enterprise JavaBeans, updated to the specification 3.1, from O’Reilly, by Andrew Lee Rubinger (JBoss) and Bill Burke (JBoss), is now available.
I am looking forward to reading it.
The book does not focus on any specific application server. As mentioned in the introduction :

“Because the focus of this book is on developing vendor independent EJB components and solutions, we have stayed away from proprietary extensions and vendor-dependent idioms wherever possible. You can use any EJBcompliant server with this book, but you should be familiar with your server’s specific installation, deployment, and runtime-management procedures to work with the examples.”

Read more

My book on EJB 3 is now on sale

I received an email from the editor informing me that the book is now printed and will be available in bookstores next week (from July 5th, 2010). It is already available for sale on Amazon and ENI. An online version is also available. Here is the cover of the book :

DAO design pattern in a session bean ?

I have recently been challenged by a colleague with a .Net background about the way I sometimes use session beans in web applications. Indeed, I like to implement DAOs as session beans. Some people argue that it’s best not to directly implement CRUD methods in session beans. The main reason being that they prefer to … Read more