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
 

 

Invoke a java webservice from CICS via batch

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

New User


Joined: 03 Sep 2010
Posts: 13
Location: Bengaluru

PostPosted: Sat Sep 04, 2010 12:50 am    Post subject: Invoke a java webservice from CICS via batch
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    Post subject:
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: 13
Location: Bengaluru

PostPosted: Sun Sep 05, 2010 11:41 am    Post subject:
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    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
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 1 Thu Jan 19, 2017 1:31 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 INDEPENDENT CICS TS 4.1 MRO REGION UP... Kyle Carroll CICS 0 Wed Dec 14, 2016 6:55 pm
No new posts CICS START AND CANCEL blayek CICS 1 Wed Dec 07, 2016 3:27 am
No new posts How does a called pgm know if its cal... Graeme Westerman COBOL Programming 4 Tue Nov 29, 2016 9:25 pm


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