Wotcha!
> That's what I did. Sorry for not supplying the implementation for
> that helper. 'ere it is.
>
> public static void close( Connection c, PreparedStatement s, ResultSet
r )
> {
> try {
> if( c != null ){
> c.close();
> }
> if( s != null ){
> s.close();
> }
> if( r != null ){
> s.close();
> }
> }
> catch( SQLException e ){
> throw new EJBException( "ExtendedJDBC: close: " + e.getMessage() );
> }
> }
>
did you mean :
r.close() for the last one?
Have you tried changing the order?
Does that help?
I always close non-dependant things first, so resultset, statement,
connection, in that order....
Tim.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user