aspose file tools*
The moose likes Java in General and the fly likes Bridge to Legacy System Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Bridge to Legacy System" Watch "Bridge to Legacy System" New topic
Author

Bridge to Legacy System

Ron Rea
Greenhorn

Joined: Jul 03, 2001
Posts: 23
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
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: 3892
    
    5
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bridge to Legacy System