struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vic Cekvenich <cekvenich....@portalvu.com>
Subject OT: Re: ibatis and jndi pooling
Date Tue, 27 Jul 2004 23:33:44 GMT
josh wrote:
  I just get a reference to the datasource and close it in
> the destroy method of the plugin.  

Let me ask why do you get a reference to datasource in SqlMaps?

You can do ANYTHING with just:

             List rows =_sqlMap.queryForList("mapNam", parms);


(also... the iBatis forum is VERY good and VERY active and we might want 
to move the thread there)
.V


If I don't do this, and my
> application gets reloaded many times, then I leave behind many
> connections to the DB forcing me to bring down tomcat in order to close
> them (for my DB admin who gets irate).
> 
> It makes me think that I am not doing something at the server level that
> I should be doing.  Any ideas?
> 
> cheers,
> josh
> On Tue, 2004-07-27 at 14:31, Vic Cekvenich wrote:
> 
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message