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
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.