如何知道SendGatewayMessage何时失败 [英] How to know when SendGatewayMessage fails
本文介绍了如何知道SendGatewayMessage何时失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用 SendGatewayMessage 时,有时如果达到队列的最大事件数设置(在CF8管理>事件网关>设置中找到),则失败。我需要知道什么时候发生,我怎么样?
When using SendGatewayMessage it can sometimes fail if the "Maximum number of events to queue" setting (found in CF8 Admin > Event Gateways > Settings) is reached. I need to know when that happens, how can I?
推荐答案
找到以下此处:
您可以检查多少个线程
运行和最大线程大小,
特别有用,如果你发现你的
超过最大数量的
事件队列和不/不能$ b $
You can check on how many threads are running and the maximum thread size, especially useful if you find you exceeding the 'Maximum number of events to queue' and don't/can't change it easily.
<cfset gatewayService = createObject("java", "coldfusion.eventgateway.GatewayServices").getGatewayServices()>
<cfoutput>
Current: #gatewayService.getQueueSize()#
<br>
Max: #gatewayService.getMaxQueueSize()#
</cfoutput>
这篇关于如何知道SendGatewayMessage何时失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文