bryanross
Feb 11th, 2005, 01:50 PM
Hi,
I'm currently converting an application that uses SLSB and Entity Beans into an app that uses Spring and Hibernate for all the standard reasons. I'm starting to design the services layer that the Struts actions will use and have a question about the separation of the services.
My action needs to get data to populate a few lists such as a list of people and a list of teams, etc to display to the user. The user will then fill in the fields, select items from the list and submit the form.
I will probably have separate service objects for the people and the teams as there will be some logic in both.
Is it a good approach to have the action contain multiple service objects or should it use a single service object and that service object contain all the methods necessary to fulfill the needs of the action? That would mean that the service object would make calls to other service objects.
Thanks for the help...
Bryan
I'm currently converting an application that uses SLSB and Entity Beans into an app that uses Spring and Hibernate for all the standard reasons. I'm starting to design the services layer that the Struts actions will use and have a question about the separation of the services.
My action needs to get data to populate a few lists such as a list of people and a list of teams, etc to display to the user. The user will then fill in the fields, select items from the list and submit the form.
I will probably have separate service objects for the people and the teams as there will be some logic in both.
Is it a good approach to have the action contain multiple service objects or should it use a single service object and that service object contain all the methods necessary to fulfill the needs of the action? That would mean that the service object would make calls to other service objects.
Thanks for the help...
Bryan