David Newton wrote:Is the misspelling of "property" a typo?
Christophe Verré wrote:How do you execute your application ? How do your read the context file ?
David Newton wrote:I think the question was more "How are you initializing Spring?"
Christophe Verré wrote:You're telling Spring that there is a JobDetailBean class called Myjob in the "path" package. Is the MyJob class in a package called "path" ? I don't see any package declaration in your code.
David Newton wrote:That's no bean, that's an action. Spring knows nothing about it.
Struts actions can be Spring beans (or vice-versa, depending on your point of view), but the action class itself would need to be defined as a Spring bean. There's Struts 1-Spring integration, so this is not a big deal.
That said: that's a *bad* idea, there should be no reason why a Quartz job would need to access a Struts action, unless something has gone wrong with your design: that's an inappropriate coupling.
David Newton wrote:Inject the DAO directly into your Quartz job--that's what Spring is for; why convolute things?
David Newton wrote:Define the DAO bean in Spring and include it in the Quartz job bean: you might want to read up on some Spring basics before proceeding too much further; this IoC/DI (Inversion of Control/Dependency Injection) is one of the most basic aspects of Spring. getting a handle on it early will save you a lot of effort.