Announcement Announcement Module
Collapse
No announcement yet.
Service to Service method call Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Service to Service method call

    Hi,

    I am using Service/DAO architecture in my project with the service layer implemented in Spring and DAO layer in Hibernate.

    I have one architecture related question:
    Can I call a service method from a different service method? I know I can use multiple DAOs in a service but not sure if I can use a other services in a service.

    If yes, should that service be injected using applicationContext?

    If no, how do I avoid code duplication?

    Any help!!!

    Thanks.

  • #2
    Yes, I think services should be able to call other services. Yes inject it with Spring, why wouldn't you?

    Comment

    Working...
    X