Choose Stateless session bean with JDBC or Entity beans - Design choice
707797Jul 23 2011 — edited Jul 25 2011Hi,
I need to design application using EJB.
Scenario is - I need to access data from database & show the results to the client. These data are considered to be entities.
I need design consideration whether to choose Stateless session bean with DAO pattern to fetch data in Value Objects (VO) to present to the client
OR
Use entity beans for data modelling.
I read from the below article to use SSB with JDBC instead of entity beans if the volumetrics (huge volume of requests) is high.
I do have huge volumetrics requirements & we have done class modelling which have large number of classes which are good candidates for entity beans.
http://www.java-tips.org/java-ee-tips/enterprise-java-beans/how-to-decide-when-to-use-entity-bean-or-simple-jdb.html
Please suggest.