IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to call a java service through Mainframe Batch COBOL pgm


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2481
Location: Netherlands, Amstelveen

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

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

Superior Member


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

PostPosted: Wed Apr 25, 2012 4:03 pm
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: 121
Location: Puerto Rico

PostPosted: Wed Apr 25, 2012 8:08 pm
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Apr 25, 2012 9:05 pm
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 25, 2012 10:55 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 1
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top