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?
 
Thanks,

Salim
 


Larry Meadors <[EMAIL PROTECTED]> wrote:
This is as simle as it can possibly get:

http://www.mail-archive.com/[email protected]/msg01759.html

Larry


On 8/17/05, Prashanth Sukumaran <[EMAIL PROTECTED]>wrote:
> IBatis PetStore.
>
> http://ibatis.apache.org/petstore.html
>
> --- Salim Madjd <[EMAIL PROTECTED]>wrote:
>
> > Hi,
> > I have read a lot of documentations and I still can not put the whole thing together, yet.
> > 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 for
> > reading the sqlconf ig.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
>

Reply via email to