-
Feb 23rd, 2007, 07:00 AM
#1
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.
-
Feb 23rd, 2007, 07:01 AM
#2
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
-
Forum Rules