RE: Sample Code using javax.sql.DataSource

2005-05-25 Thread Folashade Adeyosoye
can just use   “getConnection()” in the MysqlMemberDAO class…     Thanks         From: Clinton Begin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 25, 2005 12:34 AM To: ibatis-user-java@incubator.apache.org Subject: Re: Sample Code using javax.sql.DataSource   That code is very

Re: Sample Code using javax.sql.DataSource

2005-05-24 Thread Clinton Begin
That code is very incomplete.  It's hard to see what you're trying to do. Why are you accessing the DataSource directly?  How are you even doing that? In any case, why don't you just use the JdbcDaoTemplate and call getConnection().  Then you never have to worry about opening and closing connect