Service Virtualization

  • 1.  IBM MQ VSM Transaction Counter not increasing

    Posted Sep 14, 2016 03:47 PM

    I have several IBM MQ VSMs that exist only to drain a queue - no reply. The current methods we use are deprecated, so I'm trying to use "IBM MQ Native VSE Listen" step in a loop, but have found the transaction counter doesn't increase (or I'm doing something very wrong).  Is there a way to trick it into counting transactions read from the queue?  Kevin.Bowman



  • 2.  Re: IBM MQ VSM Transaction Counter not increasing
    Best Answer

    Posted Sep 14, 2016 05:07 PM

    Sometime in 8.x VSE stopped counting transactions for non VSI-driven VSMs.  You can work around this by adding a Script step to the beginning of your VSM, containing the following line:

     

    testExec.setStateObject("lisa.vse.stateful.request.received", Boolean.TRUE);