Author |
Message
|
pottas |
Posted: Sun Apr 13, 2008 11:59 pm Post subject: LocalEnvironment not surviving Mapping Node |
|
|
 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 |
|
 |
Gaya3 |
Posted: Mon Apr 14, 2008 1:52 am Post subject: |
|
|
 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 |
|
 |
Gemz |
Posted: Mon Apr 14, 2008 2:01 am Post subject: Re: LocalEnvironment not surviving Mapping Node |
|
|
 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 |
|
 |
shalabh1976 |
Posted: Mon Apr 14, 2008 2:45 am Post subject: |
|
|
 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 |
|
 |
Gemz |
Posted: Mon Apr 14, 2008 2:54 am Post subject: |
|
|
 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 |
|
 |
pottas |
Posted: Mon Apr 14, 2008 3:00 am Post subject: |
|
|
 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 |
|
 |
EddieA |
Posted: Mon Apr 14, 2008 9:30 am Post subject: Re: LocalEnvironment not surviving Mapping Node |
|
|
 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 |
|
 |
pottas |
Posted: Mon Apr 14, 2008 9:08 pm Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Tue Apr 15, 2008 3:44 am Post subject: |
|
|
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 |
|
 |
EddieA |
Posted: Tue Apr 15, 2008 8:46 am Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Tue Apr 15, 2008 9:25 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Apr 15, 2008 8:11 pm Post subject: |
|
|
 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 |
|
 |
jefflowrey |
Posted: Wed Apr 16, 2008 4:16 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
 _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|