|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Read the MQXQH using Java? |
« View previous topic :: View next topic » |
Author |
Message
|
csdenis |
Posted: Tue May 30, 2006 2:55 am Post subject: Read the MQXQH using Java? |
|
|
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 |
|
 |
jefflowrey |
Posted: Tue May 30, 2006 5:16 am Post subject: |
|
|
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 |
|
 |
vennela |
Posted: Tue May 30, 2006 9:40 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
|
Back to top |
|
 |
wschutz |
Posted: Tue May 30, 2006 9:45 am Post subject: |
|
|
 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 |
|
 |
vennela |
Posted: Tue May 30, 2006 10:06 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|