Today was spent developing a couple of web pages on Spring MVC Controller technology.
I find it difficult to know what logic to put in the remote EJB’s, what to put in the controller, what to put in the service layers and then what to put in the JSP. This is how I broke it down:
- HIbernate DAOs : data access
- Remote EJBs : business logic
- Service Layer : no logic – just wiring
- Controller : control logic, permissions, filtering of authorized data sets
- JSP : presentation logic
- CSS : styling and positioning
After resolving the usual lapse of missing an entry in the application-service.xml file it all seems to work okay, if a little slowly.
Anyway, the day job is over, now back to preparation for the Credit Crunch website for installing some social networking tools: