ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Removing JMS message header

Post new topic  Reply to topic
 Removing JMS message header « View previous topic :: View next topic » 
Author Message
shavo25
PostPosted: Mon Jul 26, 2010 3:42 pm    Post subject: Removing JMS message header Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 26, 2010 7:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
shavo25
PostPosted: Mon Jul 26, 2010 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Removing JMS message header
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.