Results 1 to 2 of 2

Thread: Service to Service method call

  1. #1

    Default 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •