calling Cobol client to java application

roy_sanu
roy_sanu used Ask the Experts™
on
Hi,

Please help me, there is a Legacy application built on cobol, Is there is any connector which can
help us to connect cobol client application getting access to Java application...

I googled it, I saw J2ee connector ?  some of my friend inform me to go for J2ee connector, is this right approach to access java application... if any body has come across these kind of issues, Please let me know

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Gary PattersonVP Technology / Senior Consultant

Commented:
COBOL on what platform?
Top Expert 2015

Commented:
Do you want to extend COBOL appliaction with fresh Java code or other way around?
roy_sanudeveloper

Author

Commented:
COBOL on mainframe,

the cobol program must pass few parameters( amounts) to the java program, the java program will process those amounts and calculate taxes and return back the results to the cobol program.
Top Expert 2015

Commented:
Can you compile curl or wget on your mainframe to talk HTTP?
VP Technology / Senior Consultant
Commented:
Disclaimer: I haven't worked on IBM mainframe for years, and I haven't done any Java development on zOS.

But on IBM i, one way to call Java from native programs is JNI, and both IBM i RPG and COBOL have JNI integration capabilities built-in.;  Looks like Enterprise COBOL on zOS does, too (includes sample code):

Chapter 16 of the Enterprise COBOL for z/OS Programming Guide SC23-8529-01 explains how to use JNI interface between COBOL and Java.

http://www-01.ibm.com/support/docview.wss?uid=swg27020750

The IBM Redbooks site has extensive information on Java in the zOS environment, just go here and search for "Java":

http://www.redbooks.ibm.com/portals/systemz

- Gary

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial