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
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
Can some please post a sample code using the javax.sql.DataSource;
to get connection and to also close the connection in the try final….
Something like this…
Thanks
import javax.sql.DataSource;
DataSource dataSource ;
try {
connection = dataSource.getConn
3 matches
Mail list logo