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 » Environment/LocalEnvironment

Post new topic  Reply to topic
 Environment/LocalEnvironment « View previous topic :: View next topic » 
Author Message
SOLOHERO
PostPosted: Thu Apr 05, 2007 4:36 pm    Post subject: Environment/LocalEnvironment Reply with quote

Centurion

Joined: 01 Feb 2007
Posts: 107

Very Urgernt,

How do i copy Body into environment.

I can able to copy the root but not body.

it is a kind of big message.

Thanks
_________________
Thanks
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Thu Apr 05, 2007 5:55 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Create Field Environment.Variables.MessageBody DOMAIN InputRoot.Properties.MessageDomain;

Set Environment.Variables.MessageBody = InputBody.[>];
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
PrasLearnsWBI
PostPosted: Fri Apr 06, 2007 12:06 pm    Post subject: Reply with quote

Novice

Joined: 06 Apr 2007
Posts: 13
Location: Budapest, Hungary

Thanks Jeff
This is Great !! I was looking for something like this. I used to store the Body in the "usr" of MQRFH2 header. I figured out that it was not a good idea, because some of my large messages were failing when passing through certain Nodes within my message flow.

The way you suggested looks more elegant. Is there any limit to the size of the MessageBody that can be saved in the Environment? Can we save it as a String and not as XML?

Appreciate your help

Thanks
Pras
_________________
I wonder that I am around !!
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
jefflowrey
PostPosted: Fri Apr 06, 2007 4:09 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You'd have to ASBITSTREAM it to save it as "string".

The limit on the size of Environment is directly related to the amount of memory the EG has access to.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
SOLOHERO
PostPosted: Mon Apr 09, 2007 3:56 pm    Post subject: Reply with quote

Centurion

Joined: 01 Feb 2007
Posts: 107

Hi Jeff,

Thanks for qucik Reply , but i am trying to implemnet this it is howing following error.

"Syntax error.Valid OPtions Include; AS FROM IDENTITY NAME NAMESPACE PARSE REPEAT TYPE VALUE"

REPLY ASAP Please
_________________
Thanks
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Mon Apr 09, 2007 4:10 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yeah, I guess I can't use "Field" with the domain clause of create. It was off-the-cuff code, should have mentioned.

Try searching around for other mentions of CREATE... DOMAIN.
_________________
I am *not* the model of the modern major general.
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 » Environment/LocalEnvironment
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.