Author |
Message
|
George Carey |
Posted: Fri Jan 18, 2008 3:54 pm Post subject: ma01 ( Q ) utility |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
Can the Q utiilty be used to write/construct JMS messages,
Also can it read and duplcate JMS messages.
Need to take an MQ message MQMD, etc et al to a file image then transfer that file image (via scp say) to another mq server box and put that file image back onto MQ Queue as if copied intact from original queue.
Can the Q utility be used to do this ???
If yes an example set of parameters would be great!! _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
JosephGramig |
Posted: Sun Jan 20, 2008 10:13 am Post subject: What? |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
Well,
There are several support packs you can use to do this... RfhUtilc among them. I don't remember the Q utility support pack as others are more powerful and useful.
Why wouldn't you just send the message or a copy of the message via a channel to the queue on the other QMGR and avoid putting it in a file?
You can also use the MA0T MessageTest tool to do this in a non GUI way. It will have many sample scripts. There is one to get the message from the queue and put it in a file and another to get the message from a file and put it on the queue. Of course, you will need +setall authority.
Using RfhUtilC with a CCDT that contains connection definition entries for both your QMGRs, you could browse the message from one QMGR and put it on the other with the +setall to retain all the header information exactly as it was/is. _________________ Joseph
Administrator - IBM WebSphere MQ (WMQ) V6.0, IBM WebSphere Message Broker (WMB) V6.1 & V6.0
Solution Designer - WMQ V6.0
Solution Developer - WMB V6.1 & V6.0, WMQ V5.3 |
|
Back to top |
|
 |
George Carey |
Posted: Sun Jan 20, 2008 3:47 pm Post subject: q2file2q |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
I need to do this in a non-gui way, I currently have the q utility wrappered in bourne shell script and can do exactly what I described with message payload.
I am looking to duplicate entirety of message (payload and header info even if JMS format header) and am not sure q utility can do this. It works great for payload. I do recall the RFUTIL utility being able to read/write JMS type header info -- so I will look into it as well.
Suffice it to say I NEED to go to a file transfer between queue managers. So the task is replicate mq message (header+payload) to file, send this file (via scp) to another qmgr and read file and place as exact same mq message (header + payload) on new qmgr in order to preserve message segmentation, priority, or grouping info carried in original message header. Is q, RFUTIL, or MessageTest tool capable of doing this if so which is best. As I say have q working for payload but don't see that it can handle JMS or header info like the RFUtil might be able.
Thanks for any input. _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
fjb_saper |
Posted: Sun Jan 20, 2008 6:38 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
What makes you think it won't be able to handle the headers?
Have you tried it? What was the result?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Jan 21, 2008 1:38 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Again, MA0T is an excellent choice for this. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
JosephGramig |
Posted: Mon Jan 21, 2008 4:45 am Post subject: |
|
|
 Grand Master
Joined: 09 Feb 2006 Posts: 1244 Location: Gold Coast of Florida, USA
|
You know, I pretty sure you could even read the message from one QMGR and put the message on the other QMGR using MA0T... |
|
Back to top |
|
 |
George Carey |
Posted: Mon Jan 21, 2008 9:14 am Post subject: responding to commentors |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
To: fjb_saper -- I have looked at the parameter options and nothing jumps out at me that I can definitely do this. Perhaps the 'echo' option to a file ?? I believe the RFhutil program specifically talks about building a JMS header type -- so I know I can likely do it with that utility but - the q utility was straight forward/easy to use for payload replication and would like to stick with it if I could. Do you have parameter examples.
To: Jefflowrey -- I have yet to look at the MA0T support pac I will have to do so, especially if it cannot be done with q utility.
To: JosephGraming -- ?? I need Q2file->scp->file2Q no option for QMGR to QMGR!!
Thank you for your time in giving feedback. _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jan 21, 2008 6:15 pm Post subject: Re: responding to commentors |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
George Carey wrote: |
To: fjb_saper -- I have looked at the parameter options and nothing jumps out at me that I can definitely do this. Perhaps the 'echo' option to a file ?? I believe the RFhutil program specifically talks about building a JMS header type -- so I know I can likely do it with that utility but - the q utility was straight forward/easy to use for payload replication and would like to stick with it if I could. Do you have parameter examples.
|
George, you have done nothing but speculate that the Q utility could not.
What have you TRIED to PROVE that it could not?
FYI: headers are just a specific chained part at the beginning of the payload.
RFHUTIL just allows you to extract the headers and view them on a separate tab. It also allows you to build them.
If you are only interested in copying the message any utility should be up to the task.... including the Q utility...
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
George Carey |
Posted: Tue Jan 22, 2008 3:28 pm Post subject: Jms and rfh2 |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
fjb_saper said:
Quote: |
... RFHUTIL just allows you to extract the headers and view them on a separate tab. It also allows you to build them. ... |
You may have put your finger on the issue.
Yes, RFH2 is used to contruct a JMS compatible header carried in the "Payload" portion of an MQ message after the normal 'MQMD' header portion not part of the 'Payload'. My target messages are all to be JMS messages and as I have no test data at this time --- I would need to build my own JMS messages which would include building the RFH2 xml elements to effect a JMS message. An for the time being that is what I would have to do in order to test my shell wrapped 'q' utility(thus my original question). So it is a little bit of a catch 22.
You say I can use 'q' to read a 'jms' header formated messages but not create one, which I can't test if true without creating one ... so likely may need 'RFhUtil to mock up a JMS message' .. so maybe just use RFHutil instead of 'q' ... ???
I was hoping to just use 'q' documentation to tell me how to pull out MQMD and RFH2(if present) and Payload -- but I don't see that information in the utiltiy documentation.
I guess I will see if I can't just use explorer postcard sample or the like to build some JMS messages and see what I can do with them with 'q' utility. _________________ "Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding") |
|
Back to top |
|
 |
|