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 » sending multiple output messages from JCN

Post new topic  Reply to topic
 sending multiple output messages from JCN « View previous topic :: View next topic » 
Author Message
sudeepm
PostPosted: Wed Mar 12, 2008 11:20 am    Post subject: sending multiple output messages from JCN Reply with quote

Acolyte

Joined: 31 Jan 2008
Posts: 57

Hi all,
I am working with the Java compute node in MB v6.0.2. What i need to do is this:
run a select query on a database and pick up records based on certain condition. one of the fields in the database table is a Payload of type CLOB which basically contains an XML message which has been converted into a byte array and inserted into the DB. My select query returns multiple records and for every such record,i need to create an output message which contains just the Payload as the message body. What i am doing is run a while loop on the length of the result set of the query and i wish to propagate a message in each iteration of the while loop. The code that i am using is below.

Code:
while(i<ResultSize)
{
   // create byte array 'B' from payload CLOB data from database
                
   MbElement Root = outMessage.getRootElement();
   Root.createElementAsLastChildFromBitstream(B,MbXML.PARSER_NAME,"","","",0,0,0);
   out.propagate(outAssembly);
   i = i + 1;
}


There is no error as such in this,the problem that i am facing is that the msg comes into the queue only after the flow comes to an end entirely,not after the first iteration of the while loop,also whatever the number of iterations,i just get the first message into the queue,not the rest of them.
I guess i have given pretty much all the details reqd,sumone please help me out!!

thx in advance
Sudeep
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 » sending multiple output messages from JCN
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.