Maximo Open Forum

 View Only
  • 1.  Get Queue data count through automation script

    Posted 01-31-2024 19:54

    Hello Experts,

    Is it possible to get the queue data count (continueous, sequential) using automation script or any commands in Websphere?

    Kindly suggest/ share if had experience on this.

    Thanks!


    #EverythingMaximo
    #Integrations

    ------------------------------
    Sankar Ganesh V S
    DXC Technology
    ------------------------------


  • 2.  RE: Get Queue data count through automation script

    Posted 02-01-2024 10:00

    Hi Sankar ,

    You may try using below package and available classes/methods for fetching queue's and its details.

      • psdi.iface.jms.JMSQueueBrowser


    ------------------------------
    Prashant B
    ------------------------------



  • 3.  RE: Get Queue data count through automation script

    Posted 02-03-2024 23:04
    Hi Prashant,
    Thanks for your reponse! I tried with below script and able to get the Message count. Need addiitonal work to decode the JMS data.
    (The same script didn't work when i tried an few month before. Not sure whethter it was environment issue)
    from psdi.iface.jms import JMSQueueBrowser
    from psdi.iface.jms import MaxQueueCache
    from psdi.iface.jms import QueueConfig
    from psdi.iface.jms import JMSData
    qbrowser = None
    queueName = "jms/maximo/int/queues/cqin"
    selector = ''
    config = MaxQueueCache.getInstance().getQueueConfig(queueName);
    connectionFactory = config.getConfactName();
    env = config.getEnv()
    qbrowser = JMSQueueBrowser(queueName, connectionFactory, selector, env);
    list = qbrowser.getAllMessages();
    raise TypeError("Messages Count - "+str(len(list)))
    With Regards


    ------------------------------
    Sankar Ganesh V S
    DXC Technology
    ------------------------------



Featured Podcast
Episode 1 is live: IBM Maximo Application Suite 9.2

Watch or listen to Steven Shull and Phil Runion discuss the practical MAS 9.2 updates Maximo teams should know.

Watch the Podcast
MORE by Naviam Episode 1 cover
Watch the latest episode