IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
#Supplychain
 View Only

WebSphere MQ - Map Scope/Transaction when using RUN Function to call Maps

  • 1.  WebSphere MQ - Map Scope/Transaction when using RUN Function to call Maps

    Posted 08/11/08 05:59 PM

    Originally posted by: Mr.WebSphreTX


    I designed a solution using WTX and WMQ to process invoices. WTX reads the Invoices file and create individual invoices as messages and place them into WebSphere MQ for further processing. I have a main map MapA and two compiled maps within it Map1 and Map2. Map1 is invoked by MapA using RUN function and pass the file to process the invoice and create individual messages. Map1 splits the file into individual messages and puts them into Queue as individual invoice messages. After Map1 is completed it returns the invoices count to MapA. Now MapA invokes the Map2( RUN Function)and process the some data in invoice file and creates a separate set of messages and puts them into another queue. Both the Map1 and Map2 are invoked by MapA with RUN Function and output Echo option.

    Now the problem is, My Map1 messages in queue are held by MapA until Map2 is completed. I wanted to process Map1 invoice messages to be start processing before my Map2 completes the process. Since both Map1 and Map2 are invoked by MapA. They are holding the messages until MapA is completed. I tried changing the map scope to CARD and onFailure to commit in card level settings on both the maps. By the way I am using PUT function to put messages into Queue in both the maps. Initiall my put function card settings was sink where i do not have option to set the scope to card. I changed to File( dummy) and set the scope as Card. I also changed my MapA to invoke the Map1 and Map2 in two separate cards with Scope setting as CARD in each card where I have RUN function.

    Please help me if there is a way to resolve my problem by allowing my JAVA JMS client to process the messages in the queue as soon as MAP1 is completed or for each message it puts into the queue.

    I this design I CAN NOT trigger the Map2 in launcher where I can change separate the transaction for Map1 and Map2.

    If you need more information i am open to discuss my design with any one who would like to help me on this.

    Please help
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender