Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling COBOL from Java

Status
Not open for further replies.

DellHater

Programmer
Nov 24, 2006
75
0
0
CZ
Hi

Got a system we are looking to implement that will be written in java and then make calls to a suite of COBOL programs sitting in Unix.
Anyone got any experience of this ? Any suggestions of how to call the COBOL modules ?

cheers

Steve
 
If both software run on the same system:
You will be using JNI, and transfering data from buffers to other buffers (Cobol side) converting to the correct bitnes and data format, and later converting the results back to Java data format. It's quite a tedious work.
We have a proprietary appserver/middleware solution that does this, but this is about as much as I am allowed to tell about it...

If the apps run on different systems:
Connect through SOA of some sort, it's slower then through JNI, but it's more universal, and the data conversion is done when switching to the SOA format (usually XML sometimes json).
 
Take a look at how your transactional monitor can export the cobol services. I'd bet Web Services is an option: it's easy to handle but has some overhead that should not be important.

Are you using J2EE (application servers like Weblogic or WAS)? What transactional monitor are you using for COBOL, Tuxedo?

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top