Top 7 Features of Jagacy TN3270 Emulator for Mainframe Access

How to configure Jagacy TN3270 Emulator — Step-by-step

1) Add Jagacy library to your project

  • Install jagacy3270.jar to local Maven repo:

Code

mvn install:install-file -Dfile=jagacy3270.jar -DgroupId=jagacy3270 -DartifactId=jagacy3270 -Dversion=4.2.3 -Dpackaging=jar
  • Add dependency (or include jar on classpath).

2) Create jagacy.properties (basic example)

  • Place a file named jagacy.properties on the classpath with entries:

Code

jagacy.debug=false jagacy.lock=false jagacy.terminal.type=3278-2# or 3278-3 / 3278-4 depending on model jagacy.charset=IBM1047 jagacy.ssl=false
  • Adjust terminal.type and charset to match host requirements.

3) Define a session configuration (session.xml or properties)

  • Example minimal session properties (you can use Java API instead of XML):

Code

session0.host=mainframe.example.com session0.port=23 session0.type=tn3270 session0.model=3 # 80x32; use appropriate model number session0.ssl=false session0.timeout=30000
  • For TN3270E enable protocol if needed: session0.tn3270e=true

4) Connect using Jagacy API (Java example)

  • Typical connection flow:

java

import com.jagacy.util.; import com.jagacy.session.; Jagacy j = Jagacy.create(); Session session = j.open(“session0”); // name matching your config session.connect(); session.waitFor( “logon prompt or screen pattern” ); session.send(“userid”, true); // true = enter session.send(“password”, true);
  • Use waitFor with exact screen text or coordinates; use getText(row,col,len) to read fields.

5) Configure keymap & screen model

  • If you need custom keys, provide a keymap file and reference it in jagacy.properties or load via API.
  • Ensure model matches host expectations (3278-2/3/4/5 etc.) so screen coordinates align.

6) SSL, certificates, and host verification

  • To use SSL/TLS (TN3270E): set jagacy.ssl=true and session.tn3270e=true.
  • If using self-signed certs, disable host verification only for test environments (check Jagacy docs for property name to skip verification).

7) File transfer and IND\(FILE</h3> <ul> <li>If host requires file transfers, enable IND\)FILE support per Jagacy docs and confirm transfer size limits.

8) Logging, timeouts, and retries

  • Set jagacy.debug=true for troubleshooting.
  • Configure timeouts (connect/read) in session properties and implement retries in code for transient failures.

9) Packaging and runtime

  • Bundle jagacy3270.jar and jagacy.properties in your application jar/classpath.
  • Run with a compatible JVM (Jagacy commonly tested on Java 8; confirm version for your Jagacy release).

10) Useful checks after configuration

  • Verify you can telnet/TN3270 connect to host from the machine (telnet host port).
  • Confirm charset/model produce readable text.
  • Test automated logon, a simple read of a known field, and a proper logoff.

If you want, I can generate a ready-to-run sample project: pom.xml, jagacy.properties, and a Java class that connects, logs on, reads one field, and logs off.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *