Re: [Tn5250j-general] Reconnect on SocketException

2010-07-19 Thread Mario Gonzalez
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  wrote:

> From: Mario Gonzalez 
> Subject: Re: [Tn5250j-general] Reconnect on SocketException
> To: tn5250j-general@lists.sourceforge.net
> 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 
> wrote:
> 
> > From: kjpou 
> > Subject: Re: [Tn5250j-general] Reconnect on
> SocketException
> > To: tn5250j-general@lists.sourceforge.net
> > 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
> > > Tn5250j-general@lists.sourceforge.net
> > > 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
> > Tn5250j-general@lists.sourceforge.net
> > 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
> Tn5250j-general@lists.sourceforge.net
> 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
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Reconnect on SocketException

2010-07-15 Thread Mario Gonzalez
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  wrote:

> From: kjpou 
> Subject: Re: [Tn5250j-general] Reconnect on SocketException
> To: tn5250j-general@lists.sourceforge.net
> 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
> > Tn5250j-general@lists.sourceforge.net
> > 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
> Tn5250j-general@lists.sourceforge.net
> 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
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general


Re: [Tn5250j-general] Reconnect on SocketException

2010-07-13 Thread kjpou
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
> Tn5250j-general@lists.sourceforge.net
> 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
Tn5250j-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tn5250j-general