Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Design DAO as a SLSB  RSS feed

 
Ranch Hand
Posts: 46
  • 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!





 
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/
 
straws are for suckers. tiny ads are for attractive people.
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!