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 » LocalEnvironment not surviving Mapping Node

Post new topic  Reply to topic
 LocalEnvironment not surviving Mapping Node « View previous topic :: View next topic » 
Author Message
pottas
PostPosted: Sun Apr 13, 2008 11:59 pm    Post subject: LocalEnvironment not surviving Mapping Node Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

I am running WMB 6.1

I did some research and came across the following two posts on this forum:

http://www.mqseries.net/phpBB2/viewtopic.php?t=34633&highlight=localenvironment+message+mapping+node
...and
http://www.mqseries.net/phpBB2/viewtopic.php?t=34940&highlight=localenvironment+message+mapping+node

but no joy, didn't give me the answer I need.

I am using a Mapping Node to map one WSDL to another. Before I get to the Mapping node, I store my MQMD to the LocalEnvironment:
Quote:
SET OutputLocalEnvironment.MySavedMQMD = InputRoot.MQMD;


The Mapping Node is configure to the following: Mapping Mode: LocalEnvironment And Message.

But when I pass the Mapping Node my LocalEnvironment tree is empty.

I'm not sure what I don't understand because the documentation states that with this setting the LocalEnvironment should survive:
Quote:
The LocalEnvironment tree structure and message are generated or passed through by the Mapping node, as modified by the node.


so... is there something I need to set within my mappings or am I missing something else?
Back to top
View user's profile Send private message
Gaya3
PostPosted: Mon Apr 14, 2008 1:52 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Please try with environment variable and see, if the MQMD is populating at first.

then reinitialize on to LocalEnvironment

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
Gemz
PostPosted: Mon Apr 14, 2008 2:01 am    Post subject: Re: LocalEnvironment not surviving Mapping Node Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

pottas wrote:

The Mapping Node is configure to the following: Mapping Mode: LocalEnvironment And Message.


In Mapping Node configuration use 'Message' instead of LocalEnvironment And Message.

Thanks
Gemz
Back to top
View user's profile Send private message
shalabh1976
PostPosted: Mon Apr 14, 2008 2:45 am    Post subject: Reply with quote

Partisan

Joined: 18 Jul 2002
Posts: 381
Location: Gurgaon, India

Gemz,
Can you explain the reason for your advise?
By changing the mode as you suggested any changes to the LocalEnvironment are lost.
_________________
Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Gemz
PostPosted: Mon Apr 14, 2008 2:54 am    Post subject: Reply with quote

Centurion

Joined: 14 Jan 2008
Posts: 124

Hi shalabh

Can you please let me know how you are changing or accessing the LocalEnvironment Variables in mapping node.?

Regards
Gemz
Back to top
View user's profile Send private message
pottas
PostPosted: Mon Apr 14, 2008 3:00 am    Post subject: Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

Gemz,
I'm a bit surprised that it worked, but thanks a lot for your assistance.
I guess I have the same question that shalabh1976 posed. Will keep a tab on this post to see what comes from it.
Thank you to all that replied to my question, I appreciate it a lot!
pottas
Back to top
View user's profile Send private message
EddieA
PostPosted: Mon Apr 14, 2008 9:30 am    Post subject: Re: LocalEnvironment not surviving Mapping Node Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

pottas wrote:
The Mapping Node is configure to the following: Mapping Mode: LocalEnvironment And Message.

That is telling the Broker that you will build both the LocalEnvironment and the Message inside the node.

The only trees that are passed, unchanged, from Input to Output are the ones not listed in the Property.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
pottas
PostPosted: Mon Apr 14, 2008 9:08 pm    Post subject: Reply with quote

Disciple

Joined: 27 Oct 2005
Posts: 185
Location: South Africa

EddieA,
Now that makes a lot of sense!
A bit confusing I'd say (or is it just me... ), but when you set a Compute Node to be 'LocalEnvironment And Message', then the variables are available further down the flow, but the Mapping Node works the other way around. And both of them does the same thing (in principle). I think that's where I got my nuts in a knot.
Won't easily forget this one... thanks for all the input and assistance!
pottas
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 15, 2008 3:44 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

pottas wrote:
EddieA,
Now that makes a lot of sense!
A bit confusing I'd say (or is it just me... ), but when you set a Compute Node to be 'LocalEnvironment And Message', then the variables are available further down the flow, but the Mapping Node works the other way around.


Actually, it really works the same way.

If you use a compute node, and set the Compute mode to 'LocalEnvironment and Message' and then do not copy InputLocalEnvironment to OutputLocalEnvironment... then LocalEnvironment is not available further down the flow...

Most people, however, always call either CopyEntireMessage() or CopyMessageHeaders() (and, please, never add code to these functions!), which copies InputLocalEnvironment...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
EddieA
PostPosted: Tue Apr 15, 2008 8:46 am    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

jefflowrey wrote:
Most people, however, always call either CopyEntireMessage() or CopyMessageHeaders() (and, please, never add code to these functions!), which copies InputLocalEnvironment...

Errrr, no they don't.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Apr 15, 2008 9:25 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981


_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Apr 15, 2008 8:11 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

EddieA wrote:
jefflowrey wrote:
Most people, however, always call either CopyEntireMessage() or CopyMessageHeaders() (and, please, never add code to these functions, which copies InputLocalEnvironment...)

Errrr, no they don't.

Cheers,



probably he wanted to place the closing bracket at the end...
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Apr 16, 2008 4:16 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981


_________________
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 » LocalEnvironment not surviving Mapping Node
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.