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 » reading a nested message in usr folder thru JMS

Post new topic  Reply to topic
 reading a nested message in usr folder thru JMS « View previous topic :: View next topic » 
Author Message
kshah
PostPosted: Sun Jun 26, 2005 10:17 pm    Post subject: reading a nested message in usr folder thru JMS Reply with quote

Novice

Joined: 13 Jun 2005
Posts: 23

I have issue of reading a nested structure like <alist><a>123</a><alist>

I know reading nested structure through JMS is not possible...but i would like to know if ne workaround...possible??

like can we have something like
<alist>&lta&gt....</alist>or ne other idea

if nebody has ne other workaround please let me know..
its urgent..GUYZ..
Thanks in advance
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jun 27, 2005 11:49 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

As a work around...
If you have nested structures put them in the payload and not into the RFH...

Thanks
Back to top
View user's profile Send private message Send e-mail
JacobSteenDue
PostPosted: Tue Jun 28, 2005 12:34 am    Post subject: Reply with quote

Novice

Joined: 22 Mar 2005
Posts: 13

I had a similar problem and chose to 'unfold' the list so that in stead of
<list><element/><element/></list>
I now have
<listelement1/><listelement2/>

Crappy I know - but it works......
_________________
Jacob Steen Due
Chief Consultant
IBM Certified Solution Designer - WebSphere MQ V5.3
IBM Certified Solution Designer - WebSphere Business Integration Message Broker V5
Back to top
View user's profile Send private message Visit poster's website
wbintegrator
PostPosted: Tue Dec 18, 2007 5:04 am    Post subject: Reply with quote

Voyager

Joined: 08 Feb 2006
Posts: 83

Does that mean that I can't use jms for reading messages that do carry nested xml?

I have no way to modify the format of these messages as they arrive from other applications. I just need to be able to read them and manipulate them according to my needs. The manipulation must be programmatic and therefore RFHUTIL or MQMON can't help me here.

Will I have to use MQ Base for that??
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Dec 18, 2007 5:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

wbintegrator wrote:
Does that mean that I can't use jms for reading messages that do carry nested xml?


No.

This thread is talking about the content of JMS Properties, not JMS Messages in general...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wbintegrator
PostPosted: Tue Dec 18, 2007 5:41 am    Post subject: Reply with quote

Voyager

Joined: 08 Feb 2006
Posts: 83

jefflowrey wrote:

No.

This thread is talking about the content of JMS Properties, not JMS Messages in general...


Thanks for answering so quickly and sorry for being so unclear...
I mean nested xml in the usr folder, not the body.
The above messages carry quite a complex several level xml in the usr folder - RFHUTIL and MQMON (both use MQ base as far as I know)
reads them OK but when using JMS in my program, I always get the exception:
"The MQRFH2 header has an incorrect format."

So, what I really meant to ask: do I HAVE to use MQ Base just to browse/get this kind of messages off the queue?

much thanks!
Back to top
View user's profile Send private message
JLRowe
PostPosted: Thu Dec 20, 2007 3:05 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

yes, I think you will have to use base MQ since your message producer is breaking the MQ JMS message spec

well formed MQ message != valid JMS message
Back to top
View user's profile Send private message Send e-mail
wbintegrator
PostPosted: Thu Dec 20, 2007 4:12 am    Post subject: Reply with quote

Voyager

Joined: 08 Feb 2006
Posts: 83

Sorry to hear that...
Thanks
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Dec 20, 2007 4:25 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

wbintegrator wrote:
Sorry to hear that...
Thanks


As a workaround you can try to flatten your property value structure or put your xml as a single property and parse the value after retrieving it....
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » reading a nested message in usr folder thru JMS
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.