INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Calling COBOL from Java

Calling COBOL from Java

(OP)
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

RE: Calling COBOL from Java

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).

RE: Calling COBOL from Java

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close