Problem:
This demo shows how you can communicate to a Java Server program using TCP/IP.
Resolution:
BUILD W/RELEASE: Net Express 4.0
INTRODUCTION
==========
This demo shows how you can communicate to a Java Server program using TCPIP.
The client COBOL module uses the JAVA/COBOL support to call a Java module that does the comms to the server java program.
SOURCE FILES:
==========
Program Files
Description
--------------------- ---------------------------------------------------------
TCPServer.java Java Server program
UseJavaSockets.cbl COBOL Client program that calls java.
SocketClient.java Java client module that performs the comms with the server.
REQUIREMENTS:
==========
The java code in this demo was compiled and tested with SUN SDK 1.3 and has also been tested using SUN SDK 1.4. It should also work with any of the other versions supported by Net Express v. 4.0 or later
OPERATION:
========
To run the demo :-
1. Ensure you have the Java SDK installed and working. Ensure that CLASSPATH includes
\\program files\\Micro Focus\\net express\\base\\bin\\mfcobol.jar
2. At the command prompt in the project directory run "java TCPServer"
3. Animate or Run the client COBOL program from Net Express. Ensure that the COBJVM environment variable is setup correctly in the project (currently is set up to SUN in the Application Environment). And also ensure that PATH includes the directory when jvm.dll is in your system.
REFERENCES
========
The demo uses the JAVA support detailed in the Net Express distributed computing online book (Net Express on line help, Contents Tab, Programming, Distributed Computing, Part 3: Using Java and COBOL).
Read that book for details on any configuration requirements.
==========================================================
Keywords: Example, sample, demo, demonstration, mixed language, javasockets.zip
demo.ex
demo.ne