EJB performance vs. JDBC direct calls

The question of the month in Java Performance Tuning site is about the performance of the EJB persistence versus direct JDBC calls (I think the title is a little bit misleading as it should have been "Entity EJB persistence performance" or even "CMP" rather than "EJB Performance"). And it's not surprising to see that direct JDBC calls will be faster than the EJB persistence. However, as anything else in the software development, you should strive to get the best approach for the job and concentrate on the requirements. Technicalities come second. The simplicity of using a solution like Hibernate or EJB may outweight the complexity of hand coding JDBC.

EJB performance vs. JDBC direct calls
http://www.javaperformancetuning.com/news/qotm047.shtml

Comments