Roy

I think here Tara is using the underlying api for the tn5250j project in a
program to do a signon and then execute the commands she needs.  She can then
select what to do by reading the responses back from the screens and checking
for specific data.  Kind of like what Patrick was doing with his printer 
manager.

Probably a little more involved than that but the concept is the same.  I do
believe there is sample code out there in the project cvs that shows this being
done.

Tara

> > I've written a little test code that simply connects and signs in then
> > disconnects repeatedly. Once the exception occurs, the process is
> > unsuccessful in establishing any more connections. However, I can
> > restart my test app and it will connect successfully for a period of
> > time (typically 50-60 times though I've seen as low as 10) and then
> > quit again. 

I am not sure about this problem could you send me your code bit and I can maybe
test it.  You mention that it works on a sun system without a hitch so can not
think it is anything with the code off the top of my head.  Are the actual
connections from the linux system being terminated?  I had a problem with this
in an older, 1.3.x, linux jdk from sun where when you tell the connection to
disconnect the jvm actually left it lingering out there.  Can not remember the
exact details but once these connections were used up you would have to wait for
these lingering connections to actually time out to become ready again.

If you can also post the exact error message coming back that might help as 
well.

This is off the top of my head though and am thinking you are getting a "can not
allocate socket" error as if the route to the system is not there when
specifying a wrong ip address.

Regards

Kenneth

Quoting rd <[EMAIL PROTECTED]>:

> Tara --
> 
> I am rather interested in your "headless" project.  How have you
> implemented the new UI/Rendering application to replace the "green
> screen" that you are 'scraping'?
> 
> We are dealing with this issue at my office.  As a long time tn5250j
> user (on windoz) I would like to consider the approach you have taken.
> 
> Is the UI/rendering application proprietary or OSS?
> 
> -rdg
> 
> 
> On Wed, 2005-03-09 at 09:17 -0800, Tara Hunter wrote:
> > Hi guys,
> >  
> > I'm really glad this list is showing renewed signs of life! 
> >  
> > I pulled the restructured codebase from CVS and created a handful of
> > helper methods for supporting a headless data stream interface (okay,
> > okay, screen scraping...). It's been in production since the first of
> > the year and has run without a hitch on a Sun platform for a couple of
> > months. 
> >  
> > Recent developments have prompted a move to a Linux environment (suse
> > 9) and now the fun begins...
> >  
> > I'm getting an IOException thrown in the readNegotiations method of
> > the tnvt class right after the socket connection is established. The
> > log message says the connection is closed but from browsing the code
> > it appears it is really the connections input stream (bin) that is
> > either closed or simply doesn't have any data. 
> >  
> > I've written a little test code that simply connects and signs in then
> > disconnects repeatedly. Once the exception occurs, the process is
> > unsuccessful in establishing any more connections. However, I can
> > restart my test app and it will connect successfully for a period of
> > time (typically 50-60 times though I've seen as low as 10) and then
> > quit again. 
> >  
> > Because of the architecture and use of my application, I need to be
> > able to connect repeatedly through out the day. I suspect this has
> > something to do with the differences in the way Linux is allocating
> > resources - though I've looked at the socket connections using lsof
> > and it appears they are coming and going as expected. 
> >  
> > I'm sort of at a loss here and am hoping perhaps one of you has some
> > ideas or suggestions.
> >  
> > Regards,
> > Tara
> >  
> > 
> > 
> > ______________________________________________________________________
> > Celebrate Yahoo!'s 10th Birthday! 
> > Yahoo! Netrospective: 100 Moments of the Web 
> -- 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Tn5250j-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tn5250j-general
> 






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Tn5250j-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tn5250j-general

Reply via email to