ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Salim Madjd <salim_ma...@yahoo.com>
Subject Re: where can I find a simple implementation example
Date Wed, 17 Aug 2005 20:42:57 GMT
Thanks, Larry.
Yes, I have gone this far and have all the config and maps setup based on the documentations.
Your example is great for stand-alone application. But I am looking for web application (tomcat
5.x and above or any servlet 2.3 container) and some best practices.

For example, where should I put this:
        resource = "blah/SqlMapConfig.xml";
        reader = Resources.getResourceAsReader (resource);
        sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader);
Should I place it in a listener and load it once at the start of context. How should I deal
with the thread? 
Is it best to write a simple filter to handle the resource management?


Larry Meadors <larry.meadors@gmail.com> wrote:
This is as simle as it can possibly get:



On 8/17/05, Prashanth Sukumaran 
> IBatis PetStore.
> http://ibatis.apache.org/petstore.html
> --- Salim Madjd wrote:
> > Hi,
> > I have read a lot of documentations and I still can not put the whole thing together,
> > I just want to see a simple implementation using servlet or jsp directly without
involving strut
> > or spring. I like to see a simple jsp page displaying a select statement and the
jsp page
> > displaying foo bar or something.
> > What are the best practices for using IBATIS with tomcat? What are the best practices
> > reading the sqlconfig.xml file. Should I open the config.xml file in a listener
and open/close
> > sessions in a filter?
> > Should I be worried about threads?
> >
> > Thanks in advance for any help,
> >
> > Salim
> >
> >
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

View raw message