Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/reporting-services/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jms 根据用户属性删除消息';他正在使用wlst_Jms_Wlst - Fatal编程技术网

Jms 根据用户属性删除消息';他正在使用wlst

Jms 根据用户属性删除消息';他正在使用wlst,jms,wlst,Jms,Wlst,您好,我可以使用JMS消息ID删除队列中的JMS消息,但无法删除基于消息的用户属性,您能在这里帮助我吗 connect('xxxx','xxxx','xxxxx') servers = domainRuntimeService.getServerRuntimes(); for server in servers: jmsRuntime = server.getJMSRuntime(); jmsServers = jmsRuntime.getJMSServers()

您好,我可以使用JMS消息ID删除队列中的JMS消息,但无法删除基于消息的用户属性,您能在这里帮助我吗

connect('xxxx','xxxx','xxxxx')
servers = domainRuntimeService.getServerRuntimes();
for server in servers:
        jmsRuntime = server.getJMSRuntime();
        jmsServers = jmsRuntime.getJMSServers();
        for jmsServer in jmsServers:
             destinations = jmsServer.getDestinations();
             for destination in destinations:
                 desname=destination.getName()
                 MessagesCurrentCount=destination.getMessagesCurrentCount()
                 if MessagesCurrentCount == 0:
                         if desname == "QUEUE_RESPONSE":
#                            print 'Message Current Count  '+ str(MessagesCurrentCount) +' '
#                                        destination.deleteMessages("JMSMessageID IN('ID:<786419.1533793370330.0>')")
                                         selector = "ORDER_PRIMARY_KEY like 'jack%'";
                                          timeout = 0;
                                          destination.getMessages(selector,timeout);
                                          destination.deleteMessages("selector")
connect('xxxx'、'xxxx'、'xxxxx')
servers=domainRuntimeService.getServerRuntimes();
对于服务器中的服务器:
jmsRuntime=server.getJMSRuntime();
jmsServers=jmsRuntime.getJMSServers();
对于jmsServer中的jmsServer:
destinations=jmsServer.getDestinations();
对于目的地中的目的地:
desname=destination.getName()
MessagesCurrentCount=destination.getMessagesCurrentCount()
如果MessagesCurrentCount==0:
如果desname==“队列\响应”:
#打印“消息当前计数”+str(消息当前计数)+”
#destination.deleteMessages(“JMSMessageID:”)中的
选择器=“按“jack%”这样的主键排序”;
超时=0;
getMessages(选择器,超时);
destination.deleteMessages(“选择器”)
此代码看起来可疑:

destination.deleteMessages("selector")
尝试:


:-)

嗨,杰克,请格式化你的代码,以防止潜在的应答者出现连字号。嗨,我只是想知道为什么我的getmessages函数无法根据用户属性提取消息!!提前谢谢!!
destination.deleteMessages(selector)