× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Did you try setting the as400.setGuiAvailable() method to false?


-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx on behalf of James H H Lampert
Sent: Fri 3/24/2006 6:39 PM
To: java400-l@xxxxxxxxxxxx
Subject: Strange issue when re-establishing a dropped toolbox connection
 
A colleague of mine is experiencing some difficulties. His 
question is below.
--
JHHL

--------

Hello all,

In a Java server application, I create a connection to the 
AS/400 by initializing an AS400 object using the toolbox. 
The AS/400 kills the connection once a day. When the 
connection is killed it throws a "connection dropped 
unexpectedly" exception. I catch the exception and try to 
re-connect so that the program automatically connects back 
to the AS/400 after being dropped. But what happens is 
that when the connection is dropped it pops up this Swing 
window message box saying "General Security Error" and 
hangs the whole program until you actually log in to the 
server and click OK on the window! I want the toolbox to 
not pop up a Swing window in this case and not hang the 
program.

How can I avoid the toolbox from popping up a Swing window 
when the connection is dropped in an AS/400 connection 
using the AS400 object?

Thanks

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.