Parent Directory | Revision Log | Patch
revision 2356 by torben, Tue Feb 24 07:57:47 2015 UTC | revision 2357 by torben, Tue Feb 24 08:00:03 2015 UTC | |
---|---|---|
# | Line 34 public class DbConnectionProbe extends H | Line 34 public class DbConnectionProbe extends H |
34 | Statement stmt = conn.createStatement() | Statement stmt = conn.createStatement() |
35 | ) { | ) { |
36 | ||
37 | stmt.executeQuery("SELECT 1"); | out.print("Got DB Connection<br>"); |
38 | ||
39 | stmt.executeQuery("SELECT 1"); | |
40 | ||
41 | out.print("'SELECT 1' query ok"); | |
42 | ||
out.print("Got DB Connection"); | ||
43 | ||
44 | } catch (SQLException e) { | } catch (SQLException e) { |
45 | out.print("DB Connection failed: " + e.getMessage()); | out.print("DB Connection failed: " + e.getMessage()); |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |