Hi Karl. Thanx for this reply. Here's the last portion of the code:
==================================
rs.close();
//set the caption
table.setCaption(new HTMLTextG("Found: " + counter + " " + searchstr
,"Arial",4));
document.addObject(table);
}
}
catch (SQLException sqle) {
System.err.println(sqle.getMessage());
}
catch (ClassNotFoundException cnfe) {
System.err.println(cnfe.getMessage());
}
catch (Exception e) {
System.err.println(e.getMessage());
}
finally {
try {
if ( con != null ) {
// Close the connection no matter what
con.close();
}
}
catch (SQLException sqle) {
System.err.println(sqle.getMessage());
}
}
out.println(document.toHTML());
out.close();
}
//Get Servlet information
public String getServletInfo() {
return "SearchServlet Information";
}
}
==================================end
Thanks. Your help is much appreciated.
Daniel
--- Karl Moss <[EMAIL PROTECTED]>
> wrote:
>Most issues when using the JDBC-ODBC Bridge arise from not properly closing
>ResultSet/Statement/Connection objects when you are through with them. Can
>you post some of your JDBC code that is causing the shutdown?
>
>Karl Moss
>Allaire, Corp
>
>-----Original Message-----
>From: daniel garcia [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, January 16, 2001 11:05 PM
>To: JRun-Talk
>Subject: Re: Jrun 2.3.3 and MSAccess
>
>
>Hello everyone!
>
>It seems to me that Jrun2.3 and MSAccess2000 combination is "unstable".
>
>Our databases are relatively small. JRun would most of the time shut down.
>
>We can use it for a few minutes and then it would just shutdown.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists