| Monitoring for JDBC cancellation [message #903687] |
Fri, 24 August 2012 17:48 |
Gary Monnier Messages: 6 Registered: August 2012 |
Junior Member |
|
|
Hi Everyone,
I've written a small program that connects to an IBM i and loads a table for viewing. Everything is working until I press the Cancel button when prompting for url, user name and password.
I'm catching errors in general but I would like to catch just the one thrown when the Cancel button is pressed.
Is there a way to do this?
Here is the code to prompt for the "Signon to Server" dialog.
Connection conn1;
try {
Class.forName("com.ibm.as400.access.AS400JDBCDriver");
conn1 = DriverManager.getConnection("jdbc:as400:");
} catch(Exception cne){
cne.printStackTrace();
}
Thanks,
Gary
|
|
|
Powered by
FUDForum. Page generated in 0.01610 seconds