dcsimg
java connection to as400
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   colin_lacy
Posted On:   Thursday, August 5, 2010 12:23 PM

Hi, I have some code which connects to an AS400. Works fine. However, when the 'Signon to the Server' screen is shown and the user presses the cancel button, the sign on screen is shown again. If cancel is press a 2nd time, then it goes away. Here is the code. it outputs 'ready 1', the signon screen is shown, press cancel, press cancel again, then it outputs 'catch error'. Does anyone know why the signon screen does not go away on the first press of the cancel button? The java is being called from a windows xp pc. java version "1.6.0_17". Thanks, Colin try { System.out.println("ready 1"); conn = DriverManager.getConnection(connectURL); System.out.println   More>>

Hi,
I have some code which connects to an AS400. Works fine.
However, when the 'Signon to the Server' screen is shown and the user presses the cancel button, the sign on screen is shown again. If cancel is press a 2nd time, then it goes away.
Here is the code.
it outputs 'ready 1',
the signon screen is shown, press cancel, press cancel again, then it outputs 'catch error'.
Does anyone know why the signon screen does not go away on the first press of the cancel button? The java is being called from a windows xp pc. java version "1.6.0_17". Thanks, Colin

			
try {
System.out.println("ready 1");
conn = DriverManager.getConnection(connectURL);
System.out.println("ready 2");
} catch (Exception e) {
System.out.println("catch error");
} finally {}
   <<Less

Re: java connection to as400

Posted By:   Anonymous  
Posted On:   Monday, September 27, 2010 09:00 AM

Great! Thank you!
About | Sitemap | Contact