calling Cobol client to java application

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
roy_sanudeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gary PattersonVP Technology / Senior Consultant Commented:
COBOL on what platform?
gheistCommented:
Do you want to extend COBOL appliaction with fresh Java code or other way around?
roy_sanudeveloperAuthor 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.
gheistCommented:
Can you compile curl or wget on your mainframe to talk HTTP?
Gary PattersonVP 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Mainframe Languages

From novice to tech pro — start learning today.