Startable with Schedulable
Nathan Kontny <Nathan.Kontny-UgwZ4owrJFB8UrSeD/[email protected]> Sat, 18 Sep 2004 13:11:53 -0700
| Newsgroups | gmane.comp.java.keel.user |
|---|---|
| Message-ID | <[email protected]> |
I have a model that is Schedulable. And I get it all kicked off when I make a
request to it from a browser. In its execute mdethod I do a:
Model scheduler = (Model) request
.getService(Model.ROLE, "quartzjobschedulemodel");
But I want to change this so that it kicks off automatically when the container
is started. I know that I can have me model implement Startable and that I can
specify in the meta-data activation="startup".
But in my "start()" method, how do I get a handle to the quartzjobschedulemodel,
since there is not instance of a ModelRequest to getServices from?
Thank you,
Nate