• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Design DAO as a SLSB

 
Joao Bosco Jares
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I do a design as the description above:


Presentation Tier (JSP/ManagedBean):
Description: The purpose of the
ManagedBean is handles the
application presentation
and navigation logic
that will be configured at
faces-config.xml


Business Tier (Session Bean):
Description: The purpose of the
Service Tier is
concentrate the more coarse grained
business logic and
inteligence of the system (such as a Session facade),
delegating to the DAO the fine grained
business logic (more associated with the
form of integration with legacy).


Persistence and Integration Tier (DAO as Session Bean)
Description: The purpose of the DAO
is the facade to the entities, and needs
to get a reference to an entity manager
to read and write data to the database.

As well, is the do the bridge to
communication with all other
legacy systems such as web services,
and others.

Annotation is
used to inject
entity manager into DAO




I want some help about the responsibility assigned to each tier, and specially if exist any problem regarding use DAO as Session Bean.



Best regards!





 
Luay Abdulraheem
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at this, may be it will help you :

http://jvarun.wordpress.com/2010/06/30/dao-with-jpa-and-service-layerejb3-session-beans-or-not/
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic