Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to call a java service through Mainframe Batch COBOL pgm

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
viswanath Peta

New User


Joined: 31 Dec 2008
Posts: 1
Location: Chennai

PostPosted: Wed Apr 25, 2012 3:24 pm    Post subject: How to call a java service through Mainframe Batch COBOL pgm
Reply with quote

Hi!

I am looking for the help on the following aspect.

Team A has a job which runs monthly and generate an XML file through batch cobol program and will send this XML file as an e-mail attachment to team B. Team B will do updates in their database based on this XML manually.

Now Team B is developing a java service to do the update in database automatically.

My question is
Team A has to call the java service using Mainframe Batch COBOL program. Please help me how can this be achieved?

Request input will be : XML file.
Response from java service will be : 'Confirmation Successful'

Thanks & Regards,
Vishwa
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Wed Apr 25, 2012 3:29 pm    Post subject:
Reply with quote

http://ibmmainframes.com/about51105.html

or google on :

call a java service through Mainframe Batch COBOL
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Apr 25, 2012 4:03 pm    Post subject:
Reply with quote

Also, you might Google on "z/os cobol and java" and start with the very first link.

On the other hand, per your description - I'm bit confused when you say, "Team A has to call the java service using Mainframe Batch COBOL", why it's needed? What Team B will do then? And Team B is on zOS or ...?
Back to top
View user's profile Send private message
Jose Mateo

Active User


Joined: 29 Oct 2010
Posts: 110
Location: Puerto Rico

PostPosted: Wed Apr 25, 2012 8:08 pm    Post subject:
Reply with quote

Good afternoon to all!

I am not comfortable with calling webservice to access a java service to process an XML record. One thing for sure is that if this java service executes other services and one service is not available then your java service will not process your XML record. If there's already an XML file generated by a COBOL batch program then is better to add a step to FTP the file to a server where the java program will process the file and update the database.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7935
Location: Bellevue, IA

PostPosted: Wed Apr 25, 2012 9:05 pm    Post subject:
Reply with quote

Are the COBOL program and the Java program running on the same machine or different machines? If different machines, what will the Java code be running on, and how will the COBOL program start it (since one machine starting a program on another machine is possible but usually has organization and security implicaitons)?

The manuals have a sample COBOL OO program that interfaces to a Java program. I got that running, but it took quite a few weeks and some major research -- the process is nowhere nearly as easy as the manual implies it is. And that was for a COBOL program and Java program running on the same LPAR on the same machine!
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 25, 2012 10:55 pm    Post subject: Reply to: How to call a java service through Mainframe Batch
Reply with quote

Gosh and this is what IBM refers to as "Progress" and "Seamlessness"? icon_rolleyes.gif

Back to the saying "Anything is easy as long as you don't have to do it"? icon_eek.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Full Time COBOL Software Development ... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:24 am
This topic is locked: you cannot edit posts or make replies. COBOL Software Development Lead at Fi... shally Mainframe Jobs 0 Fri Jan 20, 2017 5:21 am
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us