Re: Reconnect on SocketException

Mario Gonzalez <[email protected]> Mon, 19 Jul 2010 06:46:12 -0700 (PDT)
Newsgroups gmane.comp.java.tn5250j.general
Message-ID <[email protected]>
Any idea on where to insert maybe a 'do' whle checking for connection in order to retry and recover the session?

Tks

--- On Thu, 7/15/10, Mario Gonzalez <[email protected]> wrote:

> From: Mario Gonzalez <[email protected]>
> Subject: Re: [Tn5250j-general] Reconnect on SocketException
> To: [email protected]
> Date: Thursday, July 15, 2010, 4:10 PM
> Hi Kennet,
> 
> Thanks for your suggestion, yes I try the keep alive, maybe
> I am asking too much for a complete disconnection since the
> socket is being closed completely. The last log message that
> I am getting is 
> “ [Thread-5] WARN
> org.tn5250j.framework.th5250.DataStreamProoducer –
> DataStreamProducer thread interrupted and stopping
> Connection reset”     after that the
> session hang.
> 
> I wonder if you can call a reconnect when the exception
> occurs???
> 
> Mario 
> 
> 
> 
> --- On Tue, 7/13/10, kjpou <[email protected]>
> wrote:
> 
> > From: kjpou <[email protected]>
> > Subject: Re: [Tn5250j-general] Reconnect on
> SocketException
> > To: [email protected]
> > Date: Tuesday, July 13, 2010, 12:25 PM
> > 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
> > _______________________________________________
> > 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
> _______________________________________________
> 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
_______________________________________________
Tn5250j-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tn5250j-general