You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Cruz, Edward J." <e....@radium.ncsc.mil> on 2003/07/16 15:11:24 UTC
[OT] Ibatis as DAO with SessionFacade
This is not a struts specific questions but I know several people on this
list use this framework. I am just wondering how people have handled this
situation if they have run into it.
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
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: [OT] Ibatis as DAO with SessionFacade
Posted by Rick Reumann <r...@reumann.net>.
On Wed, 2003-07-16 at 09:11, Cruz, Edward J. wrote:
> 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.
Hey Edward, I can't answer you question (I'm too new to iBATIS, but love
it!) However, Clinton (the creater of iBATIS), will most definitely
address your question if you post it to this forum:
https://sourceforge.net/forum/forum.php?forum_id=206693
He's great about answering the iBATIS questions there. I look forward to
hearing his response.
--
Rick
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org