File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes EJB vs JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "EJB vs JDBC" Watch "EJB vs JDBC" New topic


Rahul JG
Ranch Hand

Joined: Jun 05, 2002
Posts: 44
Given an application which requires a lot of database calls, which of JDBC or EJB would be faster, and how to choose one technology over the other?

james edwin
Ranch Hand

Joined: Nov 22, 2001
Posts: 393
Hi Rahul,
See chossing technology depends on many factors few of them are like
01) How much money you want to invest ..?reason for EJB you may have to buy license EJB containers or we have free also avaiables(like JBOSS),but that depends on the budget totally.
02) R u looking for services like instance pooling,transaction management,security..etc
03) Your own expertise/technical skill set.
As far between EJB/JDBC,it all depends on that full application scenerio and rememeber when you are dealing/working with EJB, make sure perfomance should not be suffered,as EJB calls are expensive in performance.

I agree. Here's the link:
subject: EJB vs JDBC
jQuery in Action, 3rd edition