|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Removing JMS message header |
« View previous topic :: View next topic » |
Author |
Message
|
shavo25 |
Posted: Mon Jul 26, 2010 3:42 pm Post subject: Removing JMS message header |
|
|
 Apprentice
Joined: 16 Feb 2009 Posts: 29
|
Hi guys,
I know this has been posted a few times before and ive read all the replies. I just want to make sure i have the correct changes.
Environment:
MQ 5.3, JDK 1.6
I have a java jms MQ client running as a service, i need to send my messages without jms header to destination queue as our legacy systems that listen to the queue only need the body.
So in my jms class i changed the queue value to:
queue://SYD01_D/SHANE.TEST?targetClient=1
from
SHANE.TEST.
How do i know if this works correctly?
If i look at the message via MQ explorer, I see that the data length is 13. To test if i print to console the message it looks like
Code: |
Message is
JMS Message class: jms_text
JMSType: null
JMSDeliveryMode: 2
JMSExpiration: 0
JMSPriority: 4
JMSMessageID: null
JMSTimestamp: 0
JMSCorrelationID:null
JMSDestination: null
JMSReplyTo: null
JMSRedelivered: false
Hello shane |
Does this look correct? Should i be seeing these values, or is there an easier way to test that my sent message has stripped the jms header.
Thanks,
Shane. |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jul 26, 2010 7:34 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Use MO71 or IH03 (RFHUtil(c)).
This will show you whether the header is present or not.
However from what I see, you should be good.
Your URI is setup correctly.
You could have used
Code: |
queue:///SHANE.TEST?targetClient=1 |
as JMSReplyTo destination as the qmgr would fill in it's own name in the right spot.
The properties you described are on the MQMD.
Have fun and UPGRADE! MQ5.3 has been out of support for a while now.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
shavo25 |
Posted: Mon Jul 26, 2010 8:34 pm Post subject: |
|
|
 Apprentice
Joined: 16 Feb 2009 Posts: 29
|
Thanks fjb_saper.
So many IT acronyms, its hard to keep up!
So MO71 is a support pac for MQ, a Windows GUI Administrator. Downloaded it and its really good, so much faster than MQ explorer!
And i can clearly see the difference now from a jms message on the queue and a non jms message.
Thanks alot,
Learnt two new things here!
BTW i have worked on MQ 6 and 7, company that im working for now are using 5.3 and in no hurry to upgrade! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|