<cfschedule>
can only call an URL.
What can I use to call a function with some dynamic parameters later?
the only way I can think of is to call it the GET way with and populate the parameters in url scope:
./someAction.cfm?param1=xx¶m2=yy
However, this doesn't work for me 'cause I will likely hit the GET limit for large, complex data.
Do I need to implement my own scheduler to call a function?
or... is there any simpler solution in CFML? if not, maybe something in J2EE?
Thanks.
You could set something up to write your parameters to a local file or even a database, then your scheduled task could read the information from there, do its thing, then delete the parameters.
You could fire off cfthread to do the processing, however if the activity is far in the future this would not work well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With