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 » Reg : Issue on Collector Node(need help urgently)..

Post new topic  Reply to topic
 Reg : Issue on Collector Node(need help urgently).. « View previous topic :: View next topic » 
Author Message
cyvwmb
PostPosted: Mon Mar 18, 2013 3:48 am    Post subject: Reg : Issue on Collector Node(need help urgently).. Reply with quote

Newbie

Joined: 18 Mar 2013
Posts: 9

Hi,

This is my message flow order.
MQINPUT -->CollectorNode-->ComputeNode-->Fileout Node.

Here I am transforming XML to CWF format.....In collector node i given 15 mins for timeout.

i have number of input XML messages(73 input messages) it contains employee details records(Each input file contains 3,05 MB (3.206.157 bytes)) ..
My users needs every employee details records in one file it must contains 30k records. and each xml contains 800 employee records.

For Ex :

Input XML message.

first input xml
<Emp>
<row>
<fname>Bhanu</fname>
<lname>Prakkash</lname>
<comp>xxxx</comp>
</row>
<row>
<fname>sandeep</fname>
<lname>mopur</lname>
<comp>xxxx</comp>
</row>
</Emp>

second input xml
<Emp>
<row>
<fname>aaaaaa</fname>
<lname>bbbbbbb</lname>
<comp>xxxx</comp>
</row>
<row>
<fname>cccccccc</fname>
<lname>ddddddd</lname>
<comp>xxxx</comp>
</row>
</Emp>


File output must comes like this...
H123456 ----Header must be created
Bhanu prakkash xxxxxx
sandeep mopur xxxxxx
aaaaaa bbbbbbb xxxxxx
ccccccc ddddddd xxxxxxx

so here my Doubt is we need to create one Header and rest of whole is details of Employee...

for my logic one XML file is creating but in I need to append 2nd XML file as well....

why i used Collector Node in this flow to collect all input XML message at one time... but 2nd xml message is not appending file out ..


Any one can help me please
javascript:emoticon('')javascript:emoticon('')
ThanQ..
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Mon Mar 18, 2013 4:13 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.

You are far better off 'collecting' the data in a DB Table than using the collector node especially when pretty well every collection will be output as a result of a collection timeout.

Your requirement is pretty horrible in the first place and using a collector node is going to make it even worse.

Using a dB table means you can make the right decisions about how you package up the data at the right time.
_________________
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
Esa
PostPosted: Mon Mar 18, 2013 4:27 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

I agree with smdavies99 in that a Collector node is not the tool to use with large messages.

The best performing alternative would be to read the first message with MQInput and the rest of the messages with MQGet, apply large message processing principles to propagate reasonably sized batches of output records and run the FileOutput node in append mode. But to implement that properly you need to be a *very* experienced Message Broker developer.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 18, 2013 5:02 am    Post subject: Re: Reg : Issue on Collector Node(need help urgently).. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

cyvwmb wrote:
why i used Collector Node in this flow to collect all input XML message at one time... but 2nd xml message is not appending file out ..


What are you doing to indicate all the XMLs are part of the same collection?

I agree with the other posters; this is contact admin.

Put the data in a dbase and have a separate process convert db to file when all the XML has been processed.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 18, 2013 5:03 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Esa wrote:
run the FileOutput node in append mode.


Assumes the OP is running a version of WMB where the FileOutput node has an append mode.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Esa
PostPosted: Mon Mar 18, 2013 5:19 am    Post subject: Re: Reg : Issue on Collector Node(need help urgently).. Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Vitor wrote:

I agree with the other posters; this is contact admin.


Yes, it's contact bloody admin
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Mar 18, 2013 5:40 am    Post subject: Re: Reg : Issue on Collector Node(need help urgently).. Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Esa wrote:
Vitor wrote:

I agree with the other posters; this is contact admin.


Yes, it's contact bloody admin


Well this new policy is going to seriously tone down the level of my criticism.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
cyvwmb
PostPosted: Mon Mar 18, 2013 11:36 pm    Post subject: Reply with quote

Newbie

Joined: 18 Mar 2013
Posts: 9

Hi all
Thank you to all for replying me..

In FileOut Node i using append mode.

File output must comes like this...
H123456 ----Header must be created(mandatory)
Bhanu prakkash xxxxxx
sandeep mopur xxxxxx
aaaaaa bbbbbbb xxxxxx
ccccccc ddddddd xxxxxxx

Header must be one row for whole cwf output file messages...


If i will take single XML file every time header row will create duplicates...

so Database is not possible... javascript:emoticon('')
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Tue Mar 19, 2013 4:33 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

cyvwmb wrote:
If i will take single XML file every time header row will create duplicates...


Not if you only generate the output once all the XML files have been processed, as I and others have suggested. If you're not going to read what we're posting why are you bothering?

cyvwmb wrote:
so Database is not possible...


Of course it is. But if you believe not, or don't believe this is the best advice then go in peace and good fortune to you.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Reg : Issue on Collector Node(need help urgently)..
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.