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 » problem with CHOICE TYPE in CWF

Post new topic  Reply to topic
 problem with CHOICE TYPE in CWF « View previous topic :: View next topic » 
Author Message
rajaram
PostPosted: Fri Jan 02, 2004 7:35 am    Post subject: problem with CHOICE TYPE in CWF Reply with quote

Acolyte

Joined: 02 Jan 2004
Posts: 53

hi,

I have a small problem with CHOICE TYPE in CWF.

i have a compound type which is repeatable. It contains the following types.

1. header (length--1)
2. compound type--choice.
a) first record is of size 26
b) second record is of size 57.

I have read a topic in this forum which refers to the following site. It says if u have different lengths for records in choice type for CWF, we should then use multipart messages.
http://www.mqseries.net/phpBB2/viewtopic.php?t=8106&highlight=choice+cwf
Is there any other way on how i can handle this?

I have read in the manual that CHOICE cannot be resolved purely from data and that we have to handle that in the coding(ESQL).

In the input node, i feel i should mention domain as BLOB. right?
because, i will not able to parse the message and i feel that after the input node..i should write a compute node that handles this data. right?

I know this is a small one...but Please tell me how to handle this.

Thanks for any replies,
rajaram
Back to top
View user's profile Send private message
kimbert
PostPosted: Fri Jan 02, 2004 9:12 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Hi,

Most of what you say is true:
- CWF cannot automatically resolve a choice based on the data in the bitstream. Instead, the CWF parser puts an unparsed section of the bitstream into the message tree. This section will be as large as a the largest element in the choice.
If your 26-byte record gets padded in the bitstream, then you're OK. Otherwise, the CWF parser will automatically consume 57 bytes for the choice, and will eat up the following records.

- You must resolve an unparsed node in ESQL. You just refer to whichever branch of the choice you want to use. The unparsed node will immediately be parsed based on the path which you specified.

I presume that the bitstream contains some kind of tag which identifies each record. It may be an idea to check whether you could use the TDS ohysical format to parse your message.
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 » problem with CHOICE TYPE in CWF
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.