CFC with threaded call to own function

I have a CFC that lives in the APPLICATION scope.

I would like to have a function that runs in the background for the life of
the object that does some house cleaning.

I have try calling a function from init() that has a thread
and within that a while loop, call the worker function and then sleep for a
bit. But purgeLicensePool() is not getting called.

​private void function backgroundPurgeLicensePool() {
thread action=“run” name=“lockPurgeLicensePool#VARIABLES.iws4Service#”
oService=“#THIS#” {
while (true) {
sleep(60000); // 1 minute
oService.purgeLicensePool();
}
}
}​–

AJ Mercer
<webonix:net strength=“Industrial” /> http://webonix.net | <webonix:org
community=“Open” /> http://webonix.org
http://twitter.com/webonix

Have you tried attributes.oService.purgeLicensePool? Checked the exception
log?