Skip to main content.
top

Description

Jagacy 3270
Jagacy 3270 is our award winning 3270 screen-scraping library written entirely in Java. It supports SSL, TN3270E, Internationalization, and over thirty languages. It also includes a 3270 emulator designed to help create screen-scraping applications. Developers can also develop their own custom terminal emulators (with automated logon and logoff). Jagacy 3270 screen-scraping is faster, easier to use, and more intuitive than HLLAPI. It excels in creating applications reliably and quickly.
Jagacy TN3270 Emulator
Jagacy TN3270 Emulator is an easy to use TN3270 terminal emulator written entirely in Java. It supports SSL, TN3270E, Internationalization, and over thirty languages. It does not contain the screen-scraping library, and is an inexpensive solution for a stand-alone Java 3270 terminal emulator.
Jagacy VT
Jagacy VT is a feature rich VT100/VT220 screen-scraping library and terminal emulator written entirely in Java. It supports SSL, ANSI and XTERM protocols. The included emulator is designed to help create screen-scraping applications.
 
top

Features

Jagacy 3270
Jagacy 3270 provides the following features:

  • 100% pure Java, thread-safe.
  • Internationalization support.
  • SSL, proxy and DBCS support.
  • Extended TN3270 (TN3270E) support.
  • 17 different terminal types (including 132 columns).
  • Over 30 different mainframe languages supported.
  • Configurable using properties, if desired. No changes necessary when host name or screens change.
  • Easily create a custom 3270 terminal emulator.
  • Small footprint (around 250K). Runs efficiently within the Eclipse and NetBeans IDEs.
  • Enable or disable the displaying of the 3270 session (in a window) while the application is running.
  • Includes a 3270 terminal emulator tailored to developing and debugging applications.
Jagacy VT
Jagacy VT provides the following features:

  • 100% pure Java, thread-safe.
  • SSL support.
  • Support for ANSI and XTERM protocols.
  • Configurable using properties, if desired. No code changes necessary when host name or screens change.
  • Small footprint (less than 200K). Runs efficiently within the Eclipse and NetBeans IDEs.
  • Enable or disable the displaying of the VT100/VT220 session (in a window) while the application is running.
  • Includes a VT100/VT220 terminal emulator tailored to developing and debugging applications.

For screen-scraping, both Jagacy 3270 and Jagacy VT can be used in a stand-alone application, in an applet/servlet, or in an N-tier client/server environment, where the screen-scraping server is the data access tier.

 
top

Screen Scraping Sample

A simple screen scraping example would look like this (no error checking in it). Please refer to the Jagacy 3270 documentation for further information:


public class MyScrape extends Session3270 {

    // Constructor.
    MyScrape() throws JagacyException {
        super("myscrape", host, port, "IBM-3278-2", false);
    }

    // Log onto the mainframe.
    protected boolean logon() throws JagacyException {
	
        // Wait 30 seconds
        waitForChange(30000);

        writePosition(userIdRow, userIdColumn, userid);
        writePosition(passwordRow, passwordColumn, password);

        // Enter userid/password
        writeKey(Key.ENTER);

        // Wait 30 seconds
        waitForChange(30000);

        return true;
    }


    // Logoff the mainframe.
    protected void logoff() throws JagacyException {
	
        writePosition(exitRow, exitColumn, "=x");

        writeKey(Key.ENTER);

        // Wait 30 seconds
        waitForChange(30000);
    }


    private String getData() {
        return readPosition(dataRow, dataColumn, dataWidth);
    }


    public static void main(String args[]) {
	
        // Show a session window
        System.setProperty("myscrape.window", "true");
		
        // Create the screen scraper
        MyScrape s = new MyScrape();
		
        s.open();
		
        // Print the data
        System.out.println(s.getData());
		
        s.close();
		
        System.exit(0);
    }
}

	  

 
top

Properties

Pages change: fields are added, deleted, and moved. Timeouts change when mainframes are moved or network equipment is replaced. Different languages must be supported for international applications. Jagacy 3270 and Jagacy VT provide methods for reading host name, field, row/column, and timeout information from properties files. If one of these changes, the property file can be changed without recompiling software. If you would rather not use properties to specify fields, coordinates, and timeouts, there are methods that allow this too.

Properties can be read from the current working directory, a specified directory, the classpath, or from the system properties.