Re: Best practice to configure SQL Map for a web application

2009-05-23 Thread Clinton Begin
You can use a factory, a singleton, or a dependency injection container such as Spring or Guice. Cheers, Clinton On Sat, May 23, 2009 at 9:08 PM, Anoop kumar V wrote: > I was reading the example that ships with Ibatis and the initializer block > has this comment before configuring the SQL Map. I

Best practice to configure SQL Map for a web application

2009-05-23 Thread Anoop kumar V
I was reading the example that ships with Ibatis and the initializer block has this comment before configuring the SQL Map. I was just curious what is the best practice of configuring one if not in the class initializer / a constructor? I was hoping to call the class as part of the servlet init.