Any help will be greatly apprecitated! I have a legacy system running through terminal emulation software on a Windows PC. I need to be able to "screen scrape" data being entered to the legacy system screen and pass that data to a Java program that will write it to a DB2 database, via JDBC. Any ideas? Thanks in advance!
Rob Ross
Bartender
Joined: Jan 07, 2002
Posts: 2205
posted
0
Check out Runtime.exec(). You can create a dos window from within java, then with the Process object that gets returned, you have access to the error, input, and output streams. So you should be able to communicate with your emulator via standard java file streams. You'll just have to parse the input yourself, but it shouldn't be that hard.
Rob
SCJP 1.4
Kyle Brown
author
Ranch Hand
Joined: Aug 10, 2001
Posts: 3879
posted
0
You need to look at IBM's Host-on-Demand and Host Publisher products, and the other legacy access libraries that are part of VisualAge for Java Enterprise. That should help you get oriented in this space. Kyle