ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <b...@redwerk.com>
Subject Singleton or not singleton?
Date Tue, 01 Aug 2006 12:55:19 GMT
Hello, in my application there is only single instance of SqlMapClient
(singleton). Legacy code contains it's own connection manager and thus
connections for now are obtained from there. The thing is I'd prefer to use
these connections rather than allow iBATIS obtain them from datasource, but I
found there is only setUserConnection method available, and this method sets
global connection, which will be stored in singleton.

Is there anything I can do with this, or do I need to allow iBATIS manage
conections by itself?
-- 
Eugene N Dzhurinsky

Mime
View raw message