210 likes | 365 Views
CIS 365. Vandana Janeja Nov 27 th 2001 Connecting Cobol programs to Other Languages-Visual Basic, Java,HTML. No Main option. Make a DLL instead of an EXE. Java Calling a Cobol program Simplest method:. Create a COBOL program Generate its Executable
E N D
CIS 365 Vandana Janeja Nov 27th 2001 Connecting Cobol programs to Other Languages-Visual Basic, Java,HTML
Java Calling a Cobol programSimplest method: • Create a COBOL program • Generate its Executable • Write a Java program with a runtime exec object which calls the COBOL exe file.
Client Server Architecture and COBOL Web Server hosting the Servlet Server Response Object Client Browser Client Request Object Session Object A general HTTP scenario
Three tiered / N- tiered architecture Database Mail Server …… Other Services Application Server Client HTML XHTML Applet Applications Web container Servlets Application Container
HTML forms <form name=form1 mehtod=post action=“myCOB.cgi”> <input type= text name= t1 > <input type=text name=t2> <input type=submit> </form>
HTML form HTML form COBOL CGI program Servlet program Database / Mainframe Database
Client HTML form Web Server Servlet program COBOL CGI program Database
Ref : http://www.ils-international.com/goldmine/webcobol.htm