9.5. To Use EJB or Not to Use EJB?
Now that we have explored the details of JDO integration with EJB in this chapter, an often-asked question may be on your mind: “Should I use EJB in a given application?” The answer, as happens so often, is “It depends.”
Before proceeding, let's quickly recall what has been said in this chapter already. Enterprise JavaBeans come in three flavors: entity, session and message-driven beans. The authors of this book believe that JDO clearly offers a better alternative over EJB entity beans and advocate using JDO as primary persistence API within the service methods of session- and message-driven beans. Alternatively, directly using JDBC or possibly a combination of JDO and JDBC may also be applicable.
However, as ...
Get Core Java™ Data Objects now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.