0

I am studying Hibernate and at the same time reading articles related to DI or IOC.

While I was studying hibernate and reading articles related to DI or IOC, I've found this term called "Service" what is a service method? How does it affect your whole application?

user962206
  • 15,637
  • 61
  • 177
  • 270

1 Answers1

1

These days typical design (popularized by Spring and EJB to some degree) involves three layers: web, service and DAO.

Web layer should only interact with service layer (calling service methods), providing high-level, business functionality with transaction management.

Business layer should only call DAO layer (or other parts of the business layer), asking for data. Every web request can involve several business calls and every business call can involve several DAO calls.

See also

Community
  • 1
  • 1
Tomasz Nurkiewicz
  • 334,321
  • 69
  • 703
  • 674