Re: Ibatis as DAO with SessionFacade.

Vic Cekvenich <[email protected]> Wed, 16 Jul 2003 09:43:33 -0400
Newsgroups gmane.comp.java.mvc.devel
Organization baseBeans Engineering
Message-ID <[email protected]>
On baseBeans.com there is a cheat sheet page with an EJB link.

There is no reason to add complexity for complexity sake.
.V



Cruz, Edward J. wrote:
> In our current application we want to utilize the Ibatis persistence
> framework.  However, we implement the session façade design pattern using
> stateless session beans.  We want the session Façade to use a POJO business
> object to access the database via the Ibatis persistence framework.
> However, the building of the SqlMap requires a file access that is
> prohibited or discouraged when using EJB's.  Since, we use the POJO business
> object which uses Ibatis within our stateless session bean we are
> discouraged or prohibited from the file access to build the SqlMap.  
> 
> Has anyone used Ibatis along with this pattern and if so how have you built
> the SqlMap?  I see that the SqlMap is usually built in a BaseDao and stored
> as a static variable.  I understand that but that assumes you can perform
> the need I/O read of the XML file. 
> 
> Any suggestions would be appreciated.  
> 
> Jamie Cruz
> Software Engineering 
> 
>