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 » URGENT !!! Does MQSI handle application-segmented messages ?

Post new topic  Reply to topic
 URGENT !!! Does MQSI handle application-segmented messages ? « View previous topic :: View next topic » 
Author Message
MVO
PostPosted: Mon Jun 03, 2002 5:46 pm    Post subject: URGENT !!! Does MQSI handle application-segmented messages ? Reply with quote

Centurion

Joined: 09 Sep 2001
Posts: 131

Hi, I opened this problem with IBM tech support did not get much help !!!

I'm running MQSI 2.0.2 on Solaris 2.8

A remote program puts messages into my queue. I don't know the put options they are using, but it looks like the application program segments the message. On my queue, the message arrives into 2 segments with same group ID, MQMDE values are follows:
Seg1: Logical Seq# 1, Offset 0, MsgFlag 8 (message is part of a group)
Seg2: Logical Seq# 2, offset 0 , MsgFlag 24 (message is part of a group, this is the last segment)

My MQInput node has the following properties:
Transaction: Yes, Logical Order: Yes, All available message: Yes

MQSI did NOT get the whole message, it read the 1st segment, processed it, then read and processed the 2nd segment separately.
I turned on the "Commit Group" option in MQInput, now MQSI waits until another message with a different group ID arrives to commit the first transaction !!!

However MQSI did read all segments of a message when I put a long message into the queue using the MQ API. I have the put option SEGMENTATION_ALLOWED on therefore the message was segmented by the queue manager. The MQMDE of my message's segments look like this:
Seg1: Logical Seq# 1, Offset 0, MsgFlag = message segmentation allowed+message is part of a logical message
Seg2: Logical Seq# 2, offset 0 , MsgFlag =message segmentation allowed+message is part of a logical message+this is the last segment of a logical message

Does it mean MQSI only support queue-manager segmented messages ?

IBM tech support suggested me to either:
1) develop a customized MQInput node (anybody has done this ?)
2) develop a program to get the whole message then put it to a queue to be processed by MQSI.

Any help will be very appreciated.

Back to top
View user's profile Send private message
CodeCraft
PostPosted: Fri Jun 14, 2002 5:30 am    Post subject: Reply with quote

Disciple

Joined: 05 Sep 2001
Posts: 195

Do not expect WMQI to put back together a message which has been put in segments by an application. It will do this automatically.

I've done this once before and wrote a routine within WMQI to save the segments to a database file (as blobs) as they arrive and then when the last segment arrives, restring them all back together again, pass the blob to an RCD and recast using the correct message definition.

I was actually surprised by how quickly it worked too.
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 » URGENT !!! Does MQSI handle application-segmented messages ?
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.