This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Bridge to Legacy System

 
Ron Rea
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic