Ram,
Thanks a lot. Dunno how I missed that..
For all of you out there who needs an example of this
functionality:
QuartzPlugIn qp = (QuartzPlugIn)
request.getSession().getServletContext().getAttribute(QuartzPlugIn.PLUGIN_KEY);
Scheduler scheduler = qp.getScheduler();
Best,
James
--- Ram <[E
Under the jgs-struts src
src\java\com\jgsullivan\struts\plugins\QuartzPlugIn.java
If you look in this source code PLUGIN_KEY is the key in the application
context. Using this you can access the scheduler .
Hope this helps.
I am attaching the source here for your reference
/**
* $Header:
/cvs
Hello All,
I am using a combination Quartz and QuartzPlugIn to
schedule events in my struts app. The two work
beautifully together (thanks to the developers
responsible for these!)
All of my events are scheduled on the app startup and
what i wanted to do now is to manually access the
scheduler.
Hello All,
I am using a combination Quartz and QuartzPlugIn to
schedule events in my struts app. The two work
beautifully together (thanks to the developers
responsible for these!)
All of my events are scheduled on the app startup and
what i wanted to do now is to manually access the
scheduler.
4 matches
Mail list logo