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 » ASBITSTREAM and MRM

Post new topic  Reply to topic
 ASBITSTREAM and MRM « View previous topic :: View next topic » 
Author Message
jonny
PostPosted: Thu Apr 07, 2005 3:37 am    Post subject: ASBITSTREAM and MRM Reply with quote

Acolyte

Joined: 03 Jul 2003
Posts: 57

Hi,

I am using the following code in a database node, to convert a MRM-XML message to BLOB using ASBITSTREAM function and then cast it into CHAR, before I insert it into a VARCHAR field in the database.

Code:

DECLARE MsgBlob BLOB;
DECLARE MsgChar CHAR;

SET MsgBlob = ASBITSTREAM(Root.MRM.Message.Customer,
                            InputRoot.MQMD.Encoding,
                            InputRoot.MQMD.CodedCharSetId,
                            '<message set id>','<message type>','<XML1>',
                            FolderBitStream );

SET myMsgChar = CAST( myMsgBlob AS CHAR CCSID Root.MQMD.CodedCharSetId ENCODING Root.MQMD.Encoding



The above code will cause a run time error "Invalid option 'FolderBitStream'" .
Is FolderBitStream supported for the MRM domain??

If I use RootBitStream option, it will convert the whole message. i.e. Root.MRM, but I am only interested in Root.MRM.Message.Customer subtree.

Any idea how to achieve this? I have tried it for the XML domain and it works fine.


Thanks
Back to top
View user's profile Send private message
jonny
PostPosted: Fri Apr 08, 2005 6:30 am    Post subject: Reply with quote

Acolyte

Joined: 03 Jul 2003
Posts: 57

Come on guys, anyone out there who can tell me how to solve this probelm? any genius out there???
Back to top
View user's profile Send private message
JT
PostPosted: Fri Apr 08, 2005 7:25 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
Is FolderBitStream supported for the MRM domain

Apparently not:

Quote:
BIP5379

Severity
20 : Error

Message
Invalid option 'FolderBitStream'

Explanation
An ESQL operation included the use of 'FolderBitStream'. The MRM Domain does not support this option.

Response
Check your ESQL, and ensure that you do not use the option 'FolderBitStream' when working with messages in the MRM Domain.
Back to top
View user's profile Send private message
aq
PostPosted: Sun Apr 10, 2005 8:57 pm    Post subject: Reply with quote

Apprentice

Joined: 20 Dec 2001
Posts: 47

Probably not most elegant solution, but how about if you insert the subtree you want in Environment and ASBITSTREAM (FolderBitStream) it from there to BLOB variable ?
Back to top
View user's profile Send private message
kimbert
PostPosted: Mon Apr 11, 2005 12:48 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

FolderBitstream is not yet supported by the MRM. You can work around this restriction by constructing a message definition based on the Customer element - then you can use RootBitstream instead.
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 » ASBITSTREAM and MRM
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.