Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Restarting ColdFusion mail queue

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.

like image 295
Ben Doom Avatar asked Sep 18 '08 17:09

Ben Doom


1 Answers

Yes there is.

<cfset sFactory = CreateObject("java","coldfusion.server.ServiceFactory")>
<cfset MailSpoolService = sFactory.mailSpoolService>
<cfset MailSpoolService.stop()>
<cfset MailSpoolService.start()>
like image 89
Ryan Stille Avatar answered Nov 19 '22 07:11

Ryan Stille