[jboss-user] [EJB 3.0] - Re: Using quartz from EJB 3.0
henk53
do-not-reply at jboss.com
Fri Jul 18 11:36:50 EDT 2008
"jaikiran" wrote : anonymous wrote : I would like to get the Quartz scheduler.
|
| How do you deploy the quartz scheduler? Does it get bound in the JNDI? If yes, then you can inject it using the @Resource annotation and the mappedName attribute:
|
Thanks for your suggestion. Currently I haven't set up anything yet. I've used Quartz a lot in plain web applications (Tomcat based) and I also made some simple EJB3 applications.
Recently the requirement came up to schedule jobs programmatically from within EJB3 beans. Since I've never combined the two before, I wondered what the best approach was.
What you basically mean is that I deploy Quartz within a separate web application, bind it to JNDI from there and pick it up through JNDI again from the EJB3 side?
If I did that, I probably can't give the scheduler a job class name of code that lives within the EJB3 container, since the scheduler then lives within another container (a web container). I could circumvent this perhaps by having a job class at the web container side that calls the EJB3 container again.
Is such a scheme what you're aiming at, or did you mean something else?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4165372#4165372
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4165372
More information about the jboss-user
mailing list