Feb 23rd, 2007, 07:00 AM
Service to Service method call
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?
Feb 23rd, 2007, 07:01 AM
Yes, I think services should be able to call other services. Yes inject it with Spring, why wouldn't you?