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 {
conn1 = DriverManager.getConnection("jdbc:as400:");
} catch(Exception cne){


Previous Topic:Eclipse wont run
Next Topic:3D Animation Company
Goto Forum:

Current Time: Mon Jan 24 18:11:15 GMT 2022

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

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

Back to the top