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 MIPS/CPU consumption reduction in Batch vishwakotin DFSORT/ICETOOL 4 Sat Mar 18, 2017 5:46 pm
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Asynchronous CICS Processing Question moezbud CICS 0 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am


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