Tag Archives: CICS

Building a mainframe with nodes and wires

Last Friday, I built a mainframe. It looks like this:

message flow

Well OK. That’s a very, very big exaggeration. Let me explain. I’m doing some work at the moment that involves using some Enterprise Service Bus logic with CICS and various other systems. In one particular case I needed to be able to invoke a CICS transaction across the CICS/MQ bridge. This is actually incredibly straightforward, but at the last minute I couldn’t get my queue manager connected to the host thanks to some firewall issues, so I decided to create a stub version instead.

My own “ESB of choice” is WebSphere Message Broker, and coincidentally that was what I was using to develop logic late last week. I’ve been using the product for about seven years now, on and off. The development environment for WMB enables the user to create message flows that receive data over various input protocols, and wire together various operations which transform, route or otherwise make use of the data.

All this “mainframe emulator” flow does is receive a message with a COBOL copybook formatted body; map the values into a response message (there’s some conditional logic in the map which decides whether to return an error of some kind based on the specific account number in the incoming message, to emulate different conditions); and then just reply to the ReplyToQueue specified in the input message.

Total time – about 3 minutes (OK… a bit more, as I was fiddling with the return conditions and a little bit of XPath in the mapping node). Obviously it’s not a real CICS system, but it served the purpose I needed. Since the interface to the actual CICS/MQ bridge is well-defined, it would be a simple matter of redirecting the message traffic to the real system if it was required for some other degree of testing.

The Hursley blogging network

It is interesting that I’m usually identified as “an IBM Hursley person”, but officially I’m actually not – I’m a mobile worker with an office maildrop in London. It is true that I’m in Hursley as often as possible… largely because I love the location, a lot of my good friends are based there, and the products that I support are developed there.

I thought I’d mention a few of the blogs that we have going now:

  • eightbar – what is now generally known as a virtual worlds blog began as a blog about the cool “other stuff” that happens in and around IBM Hursley. Actually that’s how I first got involved with eightbar (or should that be, “the award winning eightbar”?)
  • Hursley on WMQ / IBMers on Messaging – various IBMers writing about IBM’s messaging products (this recently moved onto developerworks)
  • Testing Blues – a group of testers from Hursley discussing issues around software testing.
  • The Master Terminal – a CICS blog that I only discovered the other day!

Those are just the group blogs – there are a bunch of talented folks who work around Hursley with their own blogs too, of course (and sometimes I seem to be counted as one of them).