Author |
Message
|
jdavis28 |
Posted: Tue Sep 06, 2011 5:27 am Post subject: LocalEnvironment variables for WTX map override |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
In order to retrieve a wtx map from wsrr and use it in a wmb flow, I need to know the LocalEnvironment variables that are available to override the map in the WTX node. It looks like there is:
LocalEnvironment.WTX.MapName
LocalEnvironment.WTX.MapServerLocation
If these are the only ones available, then it sounds like I need to retrieve the map from wsrr and create an output file.
Or is there another LocalEnvironment.WTX variable that can be used to hold the compiled map?
Using wmb v7.0.0.2, wtx v8.3.
Thanks. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Sep 06, 2011 5:49 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
How you are connecting to WSRR, are you using built in nodes. where you are getting the problem. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
jdavis28 |
Posted: Tue Sep 06, 2011 5:55 am Post subject: |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
Gaya3 wrote: |
How you are connecting to WSRR, are you using built in nodes. where you are getting the problem. |
No problem with wsrr.
The question I have is regarding how to use the retrieved map to override the map in the wtx node. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Sep 06, 2011 6:15 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
Then the logic / design has to be made it bit different in WTx side.
dynamically calling different WTx maps are not that easy from MB.
instead make a MMS in WTx which does the dynamicall mapping part, [you can use RUN Function to do this]
Pass these values from Message broker to WTx MMS which does dynamically routing.
This is how i resolved the issue once. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
jdavis28 |
Posted: Tue Sep 06, 2011 6:31 am Post subject: |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
From the WMB Help Documentation.
Quote: |
Dynamically overiding a map with a compiled map
You can override a WebSphere® Transformation Extender map by populating the WebSphere Message Broker local environment tree with the binary data of a compiled map, stored, for example, in WebSphere Service Registry and Repository (WSRR).
When a compiled map is stored in WSRR, you can use a node such as the WebSphere Message Broker Compute node, Java Compute node, or RegistryLookup node to populate the local environment tree with the binary data of the compiled map. A compiled map in the local environment tree overrides both a dynamic path to a map in the local environment tree (if a dynamic path is configured) and a map that is configured through the WebSphere Transformation Extender map node settings. The order of precedence for map overrides is:
A dynamic binary map in the local environment tree
A dynamic path to a map in the local environment tree
A map configured through the WebSphere Transformation Extender map node properties, whether configured through the map settings interface or by a WebSphere Message Broker broker archive (BAR) editor.
|
This documentation does not specify where in the Local Environment tree you would store the binary data of a compiled map. That is the question. |
|
Back to top |
|
 |
Gaya3 |
Posted: Tue Sep 06, 2011 6:50 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
are you looking for these properties.
MapServerLocation property
LocalEnvironment tree path: LocalEnvironment.WTX.MapServerLocation
Purpose: To run the compiled map located in a different location than the location configured on the WTX Map node.
Result: WebSphere Message Broker overrides the map server location with the location you specified in the LocalEnvironment tree, and the WTX Map node runs the map from this location instead.
CardNumberToWire property
LocalEnvironment tree path: LocalEnvironment.WTX.InputCardNumberToWire
Purpose: To specify which input card of the map should be wired.
Result: The specified map input card receives its data from the prior node in the message flow.
LocalEnvironment.WTX.InputCardNumberToWire : this helps you to specify the input card of the map to be wired.
Link
http://publib.boulder.ibm.com/infocenter/wtxdoc/v8r2m0/index.jsp?topic=/com.ibm.websphere.dtx.wtx4wmb.doc/references/r_wtx4wmb_overriding_map_properties_at_run_time.htm _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
jdavis28 |
Posted: Tue Sep 06, 2011 7:02 am Post subject: |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
Gaya3 wrote: |
Hi
are you looking for these properties.
MapServerLocation property
LocalEnvironment tree path: LocalEnvironment.WTX.MapServerLocation
Purpose: To run the compiled map located in a different location than the location configured on the WTX Map node.
Result: WebSphere Message Broker overrides the map server location with the location you specified in the LocalEnvironment tree, and the WTX Map node runs the map from this location instead.
CardNumberToWire property
LocalEnvironment tree path: LocalEnvironment.WTX.InputCardNumberToWire
Purpose: To specify which input card of the map should be wired.
Result: The specified map input card receives its data from the prior node in the message flow.
LocalEnvironment.WTX.InputCardNumberToWire : this helps you to specify the input card of the map to be wired.
Link
http://publib.boulder.ibm.com/infocenter/wtxdoc/v8r2m0/index.jsp?topic=/com.ibm.websphere.dtx.wtx4wmb.doc/references/r_wtx4wmb_overriding_map_properties_at_run_time.htm |
These don't sound like what I need to do this:
Quote: |
You can override a WebSphere® Transformation Extender map by populating the WebSphere Message Broker local environment tree with the binary data of a compiled map |
|
|
Back to top |
|
 |
Ric-Tic |
Posted: Tue Sep 06, 2011 7:50 am Post subject: |
|
|
Apprentice
Joined: 18 Nov 2003 Posts: 38 Location: Zurich, Switzerland
|
jdavis28 wrote: |
These don't sound like what I need to do this:
Quote: |
You can override a WebSphere® Transformation Extender map by populating the WebSphere Message Broker local environment tree with the binary data of a compiled map |
|
LocalEnvironment.WTX.DynamicMap |
|
Back to top |
|
 |
jdavis28 |
Posted: Wed Sep 07, 2011 6:55 am Post subject: |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
Thank you Ric-Tic. That is what I was searching for. |
|
Back to top |
|
 |
|