Restarting ColdFusion mail queue

元气小坏坏 提交于 2019-12-10 01:33:52

问题


We are currently experiencing intermittent mail queue stoppages. I'm seeking diagnostic help in another area.

In the meantime, is there a way to restart the CF mail queue without restarting the service as a whole?

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.


回答1:


Yes there is.

<cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")>
<cfset MailSpoolService = sFactory.mailSpoolService>
<cfset MailSpoolService.stop()>
<cfset MailSpoolService.start()>


来源:https://stackoverflow.com/questions/94948/restarting-coldfusion-mail-queue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!