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
------------------------------
Original Message:
Sent: 02-01-2024 10:00
From: Prashant Bavane
Subject: Get Queue data count through automation script
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
Original Message:
Sent: 01-31-2024 19:53
From: Sankar Ganesh V S
Subject: Get Queue data count through automation script
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
------------------------------