IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Calling WTX from Java

    Posted 11/25/11 02:20 PM

    Originally posted by: PradeepV.B.


    Hi,

    I am calling a WTX map using WTX APIs in WPS server application. I am creating a map instance for every call to my transformation service. Is there a way i can reuse the map object across invocations (Threads).

    Below is the sequence of processing.

    1. Initialize the API in static block.
    2. create a new map object - MMap map = new MMap("test1.mmc");
    3. override the input and output card settings and provide the input data.
    4. run the map.
    5. unload the map.

    We are using a server class loader to load the WTX libraries which gets loaded once when we call the initializeAPI.

    Is there any problem with respect to memory and threads in using the above approach.

    thanks.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Calling WTX from Java

    Posted 12/20/11 02:57 PM

    Originally posted by: SystemAdmin


    Hi,
    Can you please send me the code snippet which you used to call WTX map from your application.

    Thanks,
    Musa.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Calling WTX from Java

    Posted 01/06/12 05:07 AM

    Originally posted by: paul.brett


    I believe you should only Init the API once, and after that you should NOT re-use a map object, and instead, always Unload the map after every invocation.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange