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 » Read the MQXQH using Java?

Post new topic  Reply to topic
 Read the MQXQH using Java? « View previous topic :: View next topic » 
Author Message
csdenis
PostPosted: Tue May 30, 2006 2:55 am    Post subject: Read the MQXQH using Java? Reply with quote

Novice

Joined: 06 Oct 2002
Posts: 24

Dear all,

Can I read the content of MQXQH by Java coding?

I have several message pending in the transmission queue and I'd like to view it's MQXQH to see more information.

Now I can only get the MQMD of the original message.

Thanks!
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue May 30, 2006 5:16 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You'll have to write code to read the individual components of the MQXQH, like read the first field which is the header identifier as a character string, and the next field which is the structure version and is an integer, and etc.

But you should not bother, and just use something that can already read the MQXQH or know the structure enough that you can understand how to read the output from amqsbcg.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
vennela
PostPosted: Tue May 30, 2006 9:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Also, the amqsbcg is also written in Java
Along with it there are lot many samples that you would find which will be very helpful.
http://www-304.ibm.com/jct09002c/isv/tech/sampmq.html
Back to top
View user's profile Send private message Send e-mail Visit poster's website
wschutz
PostPosted: Tue May 30, 2006 9:45 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

vennela wrote:
Also, the amqsbcg is also written in Java
just to be clear...you mean "amqsbcg.java", versus "amqsbcg0.c" which compiles/links to amqsbcg(.exe) (depending, of course, on the platform).
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
vennela
PostPosted: Tue May 30, 2006 10:06 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Yes, that is what I meant.
The sample shipped with the product has a java version of it in the above link.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Read the MQXQH using Java?
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.