Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Implement 3270 protocol in Java

Tags:

java

ssl

3270

I've got a big problem with IBM HACL for accessing a server which speaks 3270 protocol. The library keeps crashing, and our JNI wrapper is actually a bug-fixing layer for the poorly-implemented and poorly-documented library (and I suspect we have introduced new bugs with it too). Moreover, in our company, everybody knows Java, and could maintain the software if we didn't have the JNI-Layer and the IBM class library.

We have to use the C++ class library, because the IBM Java library is unusable: we get every non-printable character translated, and we lose all control characters along the way.

Now the question is: can we ditch this library and implement our solution in Java completely (we'd like to avoid using another library from another vendor)? Is the protocol well documented? Is the implementation of 3270-over-ssl really so complex?

Thanks.

like image 868
G B Avatar asked Oct 14 '22 08:10

G B


2 Answers

https://www.rfc-editor.org/rfc/rfc1041

so i guess its documented (assuming i hit the right doc) couldnt find a java implementation though, you'd need to code it over telnet, or maybe SSH

like image 111
radai Avatar answered Oct 19 '22 16:10

radai


I am unfamiliar with the differences between 3270 and 5250 data streams, but there is a 5250 implementation in Java in the tn5250j project available from http://tn5250j.sourceforge.net/

It might be usable for you?

(also there is a 3270 screen scraping project at http://freehost3270.sourceforge.net/ but it appears to be abandoned).

like image 38
Thorbjørn Ravn Andersen Avatar answered Oct 19 '22 17:10

Thorbjørn Ravn Andersen