ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: Singleton or not singleton?
Date Tue, 01 Aug 2006 13:16:05 GMT
I would refactor the legacy connection manager to use the same data
source that iBATIS uses.


On 8/1/06, Eugeny N Dzhurinsky <bofh@redwerk.com> wrote:
> 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

View raw message