Topic
  • 5 replies
  • Latest Post - ‏2012-12-14T14:47:00Z by NealWalters
BNJM_ororo_munroe
BNJM_ororo_munroe
2 Posts

Pinned topic [Beginner] Just need to save messages to file

‏2012-07-20T09:19:45Z |
Dear all,
I need to download messages from a certain third-party WebSphere MQ server.
I just need to save all messages as text files (or XML files) in a local folder of mine.
Is it enough to install the Websphere MQ client? Or do I need to develop some ad-hoc application?
Thank you.
Updated on 2012-12-14T14:47:00Z at 2012-12-14T14:47:00Z by NealWalters
  • SystemAdmin
    SystemAdmin
    8523 Posts

    Re: [Beginner] Just need to save messages to file

    ‏2012-07-20T19:45:29Z  
    If you are not on the same server as the qmgr you will need to use a client application. WMQ Client is a free SupportPac. There are also other free SupportPacs that can use WMQ Client to get messages and write them to files. Search and ye shall find. You will need to arrange for access to a SVRCONN channel on the qmgr. HTH, G.
  • NealWalters
    NealWalters
    29 Posts

    Re: [Beginner] Just need to save messages to file

    ‏2012-07-23T13:17:54Z  
    If you are not on the same server as the qmgr you will need to use a client application. WMQ Client is a free SupportPac. There are also other free SupportPacs that can use WMQ Client to get messages and write them to files. Search and ye shall find. You will need to arrange for access to a SVRCONN channel on the qmgr. HTH, G.
    I'm new to MQ as well, but if you google "download RFHUTIL", it's a free utility (with a Windows/Form style interface) that might do the job. Maybe someone else can confirm.
    Neal Walters
  • BNJM_ororo_munroe
    BNJM_ororo_munroe
    2 Posts

    Re: [Beginner] Just need to save messages to file

    ‏2012-07-24T13:58:45Z  
    Thank you very much. I will try as soon as possible.
  • NealWalters
    NealWalters
    29 Posts

    Re: [Beginner] Just need to save messages to file

    ‏2012-12-14T14:40:34Z  
    I just tried QLoad (Support Pack MO03) today. It can download files in this format:

    • QLOAD Version:1.9 Created:Fri Dec 14 08:28:04 2012
    • Qmgr = QTAASTAGE
    • Queue = CTS.FLH.S.QT.FLEVENTS.01

    A VER 2
    A RPT 0
    A MST 8
    A EXP -1
    A FDB 0
    A ENC 273
    A CCS 819
    A FMT MQHRF2
    A PRI 6
    A PER 1
    A MSI 414D5120504443303353424B312020205218A150F3BF602B
    A COI 000000000000000000000000000000000000000000000000
    A BOC 1
    A RTQ
    A RTM PDC02SFH1
    A USR mqm
    A ACC 0000000000000000000000000000000000000000000000000000000000000000
    A AIX 2020202020202020202020202020202020202020202020202020202020202020
    A PAT 28
    A PAN WebSphere MQ Client for Java
    A PTD 20121214
    A PTT 13541235
    A AOX 20202020
    A GRP 000000000000000000000000000000000000000000000000
    A MSQ 1
    A OFF 0
    A MSF 0
    A ORL -1
    X 524648200000000200000D6000000111000004B84D51535452
    X 20202000000000000004B80000001C3C6D63643E3C4D73643E
    X 6E6F6E653C2F4D73643E3C2F6D63643E2020000000603C6A6D
    X 733E3C4473743E71756575653A2F2F2F4D54452E494E424F55
    X 4E442E414C4C3C2F4473743E3C546D733E3133353534393332
    X 35323335303C2F546D733E3C5072693E363C2F5072693E3C44
    X 6C763E323C2F446C763E3C2F6A6D733E202000000CB43C7573
    X 723E3C4F7574626F756E64466F726D6174333E464F535F4576
    X 656E745F436F6E766572745F56325F746F5F56317C4F54442E
    X 474154455741593A4354532E464C482E532E4F54442E464C54
    X 444154412E30317C517C4576656E7446696C7465727C266C74
    X 3B4F6E44656D616E64526571756573742667743B266C743B54
    X 7970652667743B466C69676874266C743B2F54797065266774
    X 3B266C743B4B65792667743B266C743B4169726C696E65436F
    X 64652667743B20266C743B494154412667743B4141266C743B
    X 2F494154412667743B20266C743B494154412667743B4D5126
    X 6C743B2F494154412667743B20266C743B494154412667743B
    X 4E41266C743B2F494154412667743B20266C743B2F4169726C
    X 696E65436F64652667743B266C743B2F4B65792667743B266C
    X 743B2F4F6E44656D616E64526571756573742667743B3C2F4F
    X 7574626F756E64466F726D6174333E3C4F7574626F756E6446
    X 6F726D6174323E464F535F4576656E745F436F6E766572745F
    X 56325F746F5F56317C4247532E474154455741593A4354532E

    or this format:
    • QLOAD Version:1.9 Created:Fri Dec 14 08:34:56 2012
    • Qmgr = QTAASTAGE
    • Queue = CTS.FLH.S.QT.FLEVENTS.01

    A VER 2
    A RPT 0
    A MST 8
    A EXP -1
    A FDB 0
    A ENC 273
    A CCS 819
    A FMT MQHRF2
    A PRI 6
    A PER 1
    A MSI 414D5120504443303353424B312020205218A150F3BF602B
    A COI 000000000000000000000000000000000000000000000000
    A BOC 1
    A RTQ
    A RTM PDC02SFH1
    A USR mqm
    A ACC 0000000000000000000000000000000000000000000000000000000000000000
    A AIX 2020202020202020202020202020202020202020202020202020202020202020
    A PAT 28
    A PAN WebSphere MQ Client for Java
    A PTD 20121214
    A PTT 13541235
    A AOX 20202020
    A GRP 000000000000000000000000000000000000000000000000
    A MSQ 1
    A OFF 0
    A MSF 0
    A ORL -1
    X 524648200000000200000D6000000111000004B84D51535452 <RFH .......`........MQSTR>
    X 20202000000000000004B80000001C3C6D63643E3C4D73643E < ............<mcd><Msd>>
    X 6E6F6E653C2F4D73643E3C2F6D63643E2020000000603C6A6D <none</Msd></mcd> ...`<jm>
    X 733E3C4473743E71756575653A2F2F2F4D54452E494E424F55 <Dst>queue:///MTE.INBOU>
    X 4E442E414C4C3C2F4473743E3C546D733E3133353534393332 <ND.ALL</Dst><Tms>13554932>
    X 35323335303C2F546D733E3C5072693E363C2F5072693E3C44 <52350</Tms><Pri>6</Pri><D>
    X 6C763E323C2F446C763E3C2F6A6D733E202000000CB43C7573 <lv>2</Dlv></jms> ....<us>
    X 723E3C4F7574626F756E64466F726D6174333E464F535F4576 <r><OutboundFormat3>FOS_Ev>
    X 656E745F436F6E766572745F56325F746F5F56317C4F54442E <ent_Convert_V2_to_V1|OTD.>
    X 474154455741593A4354532E464C482E532E4F54442E464C54 <GATEWAY:CTS.FLH.S.OTD.FLT>
    X 444154412E30317C517C4576656E7446696C7465727C266C74 <DATA.01|Q|EventFilter|&lt>
    X 3B4F6E44656D616E64526571756573742667743B266C743B54 <;OnDemandRequest&gt;&lt;T>
    X 7970652667743B466C69676874266C743B2F54797065266774 <ype>Flight</Type&gt>
    X 3B266C743B4B65792667743B266C743B4169726C696E65436F <;&lt;Key&gt;&lt;AirlineCo>
    And it can reload these files into other queues.

    Neal
  • NealWalters
    NealWalters
    29 Posts

    Re: [Beginner] Just need to save messages to file

    ‏2012-12-14T14:47:00Z  
    Does QLoad also have an option to just save the message part without all the formatting? I'm still reading the manual.
    I might want to just have one file per message, with just the raw message in it.

    What other alternatives are there if you want to save each message to disk in real-time as they arrive?
    I'm interesting in cloning a feed. Our partner/vendor has a Production and Test feed, but we have four environments: DEV, QA, STAGE, and Production.
    I need to create a feed for my QA & Stage environments.

    Thanks,
    Neal