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 » WebSphere Message Broker (ACE) Support » FileInput Parsed Record Sequence

Post new topic  Reply to topic
 FileInput Parsed Record Sequence « View previous topic :: View next topic » 
Author Message
ninja
PostPosted: Mon Nov 16, 2009 8:18 am    Post subject: FileInput Parsed Record Sequence Reply with quote

Newbie

Joined: 21 Jul 2009
Posts: 8

Hi all,

I know there are already some posts regarding this topic but I still not understand completely how to use this feature.
I'm using broker 6.1 and I want to split a file configuring the FileInput node.
So I'm trying to avoid the compute node to perform the splitting.
My input message (XML) has the following structure:
<flow>
<data>
</data>
<data>
</data>
...
<data>
</data>
</flow>
Obviously I'd like to split these XML in many XML messages with the "data" element as root.
Using the "parsed record sequence" how can the broker understand which is the message to be splitted?
What do I have to put in the message set: the structure of the complete file or only of the part to be splitted?
Thanks in advance.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Nov 16, 2009 8:45 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Could you explain why you want to avoid the use of a Compute Node?

Also,
Have you tried anything out before you asked your question?
With many questions asked in this forum, there is often more than one answer. If you find something that works then go with it.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
ninja
PostPosted: Tue Nov 17, 2009 5:19 am    Post subject: Reply with quote

Newbie

Joined: 21 Jul 2009
Posts: 8

No particular reason, smdavies99.
It was my first time using FileInput node and I checked if somebody here managed to configure the "parsed record sequence" option.

Anyway. since this flow was urgent I had to use the alternative solution.
If I have time I'll try again to configure this node and I'll put the solution here.

Regards.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Nov 17, 2009 6:15 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Quote:
I'd like to split these XML in many XML messages with the "data" element as root.
I don't think that's possible. Parsed Record Sequence can only operate on a file which consists of a sequence of entire messages ( with no envelope like the '<flow>' tag).
Back to top
View user's profile Send private message
ninja
PostPosted: Tue Nov 17, 2009 6:23 am    Post subject: Reply with quote

Newbie

Joined: 21 Jul 2009
Posts: 8

So this node can process only files with a simple structure. Now I understand why I couldn't configure it properly

Thanks kimbert.
Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Nov 17, 2009 6:34 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

btw, the development team are already aware of this limitation. If enough customers want that kind of flexibility, it might get added. Use your IBM rep or this forum to make yourself heard.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Nov 19, 2009 9:26 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You could maybe do this as a simplified TDS model, with "<flow>" as a header record and '</flow>" as a trailer, and then define a tagged-delimited body with "<data>" and "</data>" as tags and delimiters and a blob in between.

I'm sure it's a bad idea for various reasons, but it might be doable.

I amend this to say that it's probably better to use "<flow>" and "</flow>" as group indicators and terminators than as header and trailer records.
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 » WebSphere Message Broker (ACE) Support » FileInput Parsed Record Sequence
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.