I just wanted to say thank you! The tip about using the “application context” association:
getPageContext().setApplicationContext(variables.ac);
… was exactly what I need to figure out how to actually make CFThread[type="task"]
useful. As a fun thought-experiment, I’ve generated a task thread that monitors and manages daemon threads running inside my ColdFusion application:
This allows me to restart CFThreads
if they crash (such as when consuming a message queue, Redis list as in the above blog post).