Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Monitoring for JDBC cancellation(How do you catch a JDBC connection attempt cancellation?)
Monitoring for JDBC cancellation [message #903687] Fri, 24 August 2012 21:48
Gary Monnier is currently offline Gary MonnierFriend
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
Previous Topic:Eclipse wont run
Next Topic:Trouble in CSS
Goto Forum:
  


Current Time: Fri Mar 29 00:14:04 GMT 2024

Powered by FUDForum. Page generated in 0.07837 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top