|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Question on ASBITSTREAM |
« View previous topic :: View next topic » |
Author |
Message
|
Karan |
Posted: Thu May 31, 2012 1:34 am Post subject: Question on ASBITSTREAM |
|
|
Apprentice
Joined: 21 Oct 2009 Posts: 29
|
Hi,
I have read many a topics in this forum on using ASBITSTREAM for Environment.Variables [or any part of the environment tree not associated with a parser as such]
Is this possible ?? ( using folderbitstream/rootbitstream )
For eg If I do the following in Environment.Variables
SET Environment.Variables.My.F.H=1
SET Environment.Variables.My.F.T=2
IS this supposed to work
ASBITSTREAM(Environment.Variables.My) ? (not the exact syntax here)
Asking cause I dont get the blob value on using rootbitsream/folderbitstream. Either Im doing something wrong here or it just isnt supposed to happen without adding XMLNSC (some parser) after Environment.Variables
MbVersion 6.1
Please advise |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 31, 2012 1:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There is no parser associated with Environment by default.
Therefore, there's nothing that knows how to convert it into a stream of bytes (serialize it).
So, no, it's not supposed to work to use ASBITSTREAM. |
|
Back to top |
|
 |
Karan |
Posted: Thu May 31, 2012 1:51 am Post subject: |
|
|
Apprentice
Joined: 21 Oct 2009 Posts: 29
|
Thanks for the quick reply mqjeff |
|
Back to top |
|
 |
kimbert |
Posted: Thu May 31, 2012 2:13 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
IS this supposed to work
ASBITSTREAM(Environment.Variables.My) ? |
I'll ask you a question that shows why this does not and should not work. Which of the following outputs would you like:
a) <My><F><H>1</H><T>2</T></F></My>
b) <My><F H="1" T="2"/></My>
c) 1,2 ( i.e. delimited with commas)
d) 001002 ( fixed length, padded with zeros to three characters )
e) 0x000001000002 ( i.e. binary integers )
etc
It is the parser that defines how to convert the message tree into a stream of bytes. If your message tree does not have a parser then it has no way to do the conversion. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|