Recommended practices

It is recommended that you have different Spring contexts for each of the layers. This helps in separating concerns of each layer. This also helps in unit testing code for the specific layer.

An application context.xml can be used to import contexts from all the layers. This can be context that is loaded when an application is run. Some of the possible spring context names are listed as follows:

  • application-context.xml
  • presentation-context.xml
  • services-context.xml
  • business-context.xml
  • persistence-context.xml
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset