This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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!
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.
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