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

Invoke a java webservice from CICS via batch


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
arunn

New User


Joined: 03 Sep 2010
Posts: 15
Location: Bengaluru

PostPosted: Sat Sep 04, 2010 12:50 am
Reply with quote

Hi,

I am trying to invoke a java web service from the mainframe environment via a batch process .

My requirement is to retrieve information from a java based web service from CICS-COBOL program and store it in a file. However it needs to go in as a batch process to make the whole process as automated as possible.

I looked around many places searching for options to be able to find a hint of how to go about doing it. But, could not find much useful results.

Any information about how to achieve this would be very helpful.

Thanks much.
Back to top
View user's profile Send private message
Prasun De

New User


Joined: 17 Jan 2008
Posts: 28
Location: Kolkata, INDIA

PostPosted: Sun Sep 05, 2010 7:18 am
Reply with quote

Our shop has this kind of system. Your java web service have to use the CICS gateway services to trigger one CICS transaction. The Java prograqm will actually pass the data in the DFHCOMMAREA of the transaction.

In mainframe you need to write the CICS-COBOL program to read the data from DFHCOMMAREA and write it to a VSAM file.

As per your requirement you need a batch process.
schedule a batch job to check the VSAM file in a regular interval and copy the records that are new in the file and have not been processed yet. You can do this by maintaining one separate file with the last processed record key.

If you get new records, then trigger your rest of the batch jobs.
Back to top
View user's profile Send private message
arunn

New User


Joined: 03 Sep 2010
Posts: 15
Location: Bengaluru

PostPosted: Sun Sep 05, 2010 11:41 am
Reply with quote

Thanks Prasun , this is something which i was looking for .... to be more precise,

Mainframe will call ----> Java webservices to get data.
it will store the xml data after parsing in a flat file to be updated later in a VSAM.

The bigger question is, since this is gong to be an online process of getting data from the web services, how do i trigger my CICS-COBOL program to get data via a batch process. I am not entirely sure how to have the CICS transaction triggered by a batch process. It definitely should be possible.
Just donno how???Will do some more digging into the gateway services to trigger one.

your post was helpful in clearing a few things.

Thanks.
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 Using API Gateway from CICS program CICS 0
No new posts How to get a stack trace on a looping... ABENDS & Debugging 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
Search our Forums:

Back to Top