ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Campbell <michael.campb...@gmail.com>
Subject Re: best method to get SqlMapClient in web application
Date Mon, 24 Oct 2005 16:30:26 GMT
I'm using Spring's iBatis support for this.  Fairly easy to set up and
works very well.

On 10/24/05, Ashish Kulkarni <kulkarni_ash1312@yahoo.com> wrote:
> Hello
> What is the best way to get SqlMapClient in a web
> application
> 1 , Define a singleton pattern class, and create a
> instance of SqlMapClient to use by all classes which
> need to access data.
>
> 2, Define a AbstractClass and put method to get
> SqlMapClient in constructor of this class, and then
> each class which needs to get data extends this class
>
>
> 3, Create Instance of SqlMapClient in one of the init
> servlets, and store this SqlMapClient in
> ServletContext and pass it as one of the parameters to
> all data classes
>
> 4, or any other method
>
> Ashish
>
>
>
>
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
>


--
I tend to view "truly flexible" by another term: "Make everything
equally hard". -- DHH

Mime
View raw message