Hi all,
In my Lift application I have code that looks like this (this is executed in response to ajax button click):
if (someCondition) {
val actor = new MyLiftActor(someDependencies)
actor ! DoLongRunningJob(arguments)
}
someDependencies - unique for each session (they are stored in session state)
arguments - unique for each request (each button click)
I'm wondering if I use LiftActor correctly or there is a potential problem, since I don't store the reference to actor object anywhere.
Can it be garbage collected while processing my long running job?
Kind regards,
Mikhail