• Post Reply Bookmark Topic Watch Topic
  • New Topic

Interface with CICS using JMS/MQ  RSS feed

 
Satya Kumaran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the problem scenario: The data in a POJO needs to get to our legacy database via a CICS adapter (the interface is defined by a cobol copybook) through a JMS message connecting to MQ.

Most of the work is done, and ready.. the only catch is: I don't know what is the best way to serialize the data in the POJO into a data byte buffer that would conform to the copybook - meaning, the positional offset of payload data elements needs to be exact.

I would like the solution to be generic enough for us to extend to other copybooks etc. Can anybody give me some pointers on how to approach this problem?

All help much appreciated.
 
Jesus Angeles
Ranch Hand
Posts: 2070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where I work, we do it the hard way ( I dont know if there is an easy way, like a mapping).

For the java part, we use StringTokenizer. We insert a semicolon(any char you prefer), in between data.

For the cobol copybook part, in the same way, we put a semicolon in between data.

The java String and the cobol copybook, of course should match char per char on the offsets. That is the hard part of it, counting manually.
 
Satya Kumaran
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It seems like there are some products like Contivo that can help with the data transformations.. and there WSAD Integrated edition has a BI perspective that can offer some tools. I am doing some research on these now.. Thanks for your response.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!