重新启动ColdFusion邮件队列 [英] Restarting ColdFusion mail queue
本文介绍了重新启动ColdFusion邮件队列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我们目前正在经历间歇性邮件伫列停滞。我在其他地区寻求诊断帮助。
We are currently experiencing intermittent mail queue stoppages. I'm seeking diagnostic help in another area.
在此期间,有没有办法重新启动CF邮件队列而不重新启动整个服务?
In the meantime, is there a way to restart the CF mail queue without restarting the service as a whole?
CF8标准
Win2k3
CF8 standard Win2k3
解决方案:我们现在检查邮件队列中最旧的文件的年龄。
Solution: We are now checking the age of the oldest file in the mail queue. When it exceeds a set age (currently 30 min) the mail queue is restarted.
推荐答案
如果超过设定年龄(目前为30分钟),邮件伫列会重新启动。
Yes there is.
<cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")>
<cfset MailSpoolService = sFactory.mailSpoolService>
<cfset MailSpoolService.stop()>
<cfset MailSpoolService.start()>
这篇关于重新启动ColdFusion邮件队列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文