Hello everyone,
Im currently working on a Websphere Portal project, where i evaluated the possibility to use spring + ibatis for the current scenario:
- For the time being our main goal is to write a framework that can handle a e-form solution (IBM Lotus Forms) where the product gives the possibility to do XForm Submissions. In general the product is producing a XML-Fragment that needs to be processed.
-The processing is done inside a portlet method where a service object gets the needed data by DAO's and construct the domain objects based on business logic implemented in the service object.
My DAO's are as thin as:
The unit tests for the DAO layer use a nonJNDI datasource definition and look likeCode:public ITemplate getTemplate(Template tpl) { getSqlMapClientTemplate().queryForObject(GET_TEMPLATE, tpl); return tpl; }
My question is more about the general setup and the service layer in general. Do you think its a good approach to do the following layering:Code:public void testDataLoad() { ITemplate tpl = new Template(); tpl.setIdentifier("FORM_22"); ITemplateDAO tplDAO = (TemplateDAO) ContextHelper.getInstance().getBean( "templateDAO"); ITemplate tplReturn = tplDAO.getTemplate(tpl); logger.log(Level.INFO,tpl.toString()); assertEquals(tplReturn.getFilename(), "form22v8.xfdl"); }
View: JSF
Controller: Portlet
Service Layer: service objects with logic
DAO: simple CRUD operations
ORM: ibatis
DB: Oracle
I dont intend to use the MVC module of Spring.
What do you think about the setup? Any kind of comments or remarks are welcome.


Reply With Quote