Re: Reconnect on SocketException

kjpou <[email protected]> Tue, 13 Jul 2010 19:25:34 +0200
Newsgroups gmane.comp.java.tn5250j.general
Message-ID <[email protected]>
Mario

You can try setting the send keep alive setting on the connection 
configuration.  Try that to see if it works.

All it does is send a small byte to the AS400 connection and that might 
be enough to keep the connection working longer.

Regards

Kenneth

Mario Gonzalez wrote:
> Hi to all,
>
> Is there any way to reconnect a  session when a SocketException occurs?. I am trying to use TN5250J on some wireless terminals and sometimes they lost TCP communication for a couple of seconds. The only way that I see is reconnection the session after a timeout when a SocketException occur. Any ideas?
>
> Mario
>
>
>       
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Tn5250j-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
>
>   

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first