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 » Question on ASBITSTREAM

Post new topic  Reply to topic
 Question on ASBITSTREAM « View previous topic :: View next topic » 
Author Message
Karan
PostPosted: Thu May 31, 2012 1:34 am    Post subject: Question on ASBITSTREAM Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Thu May 31, 2012 1:37 am    Post subject: Reply with quote

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
View user's profile Send private message
Karan
PostPosted: Thu May 31, 2012 1:51 am    Post subject: Reply with quote

Apprentice

Joined: 21 Oct 2009
Posts: 29

Thanks for the quick reply mqjeff
Back to top
View user's profile Send private message
kimbert
PostPosted: Thu May 31, 2012 2:13 am    Post subject: Reply with quote

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
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 » Question on ASBITSTREAM
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.