|
Thanks Enrique,
that's what I suspected. Could you tell me if it
is better practice to
pass the connection in to the method - for
example:
//------------- session facade methods-----------------------------
/**
Connection conn = getConnection(
); finally{
conn.close( ); }
//------------- DAO method
-----------------------------
public
ProductDAO( )
{
}
public Page
findByKey( Connection conn, String key, int start, int count
)
stmt.setString ( 1, key );
ResultSet rs = stmt.executeQuery ( );
return toPage ( rs, start, count ); thanks for your help,
Brian
|
- [JBoss-user] Closing database connections Brian McSweeney
- RE: [JBoss-user] Closing database connections Martin Vilcans
- Re: [JBoss-user] Closing database connections Brian McSweeney
- Re: [JBoss-user] Closing database connectio... Herve Tchepannou
- RE: [JBoss-user] Closing database connectio... Martin Vilcans
- Re: [JBoss-user] Closing database conne... Brian McSweeney
- RE: [JBoss-user] Closing database connections Enrique Rodr�guez
- RE: [JBoss-user] Closing database connections Brian McSweeney
- RE: [JBoss-user] Closing database connections Alastair Rodgers
- Re: [JBoss-user] Closing database connections Brian McSweeney
