36 articles and counting
      
Articles listed under: Spring

Scheduling a Method Invocation with Spring and Quartz

I was wanting to run a scheduled task recently using Spring and Quartz. Here is a little snippet you may find useful if you are simply wanting to invoke a method:

< ?xml version="1.0" encoding="UTF-8"?>

There are various triggers you can use – Im using a cron trigger in this example. The cron pattern example triggers this [...]

READ FULL ARTICLE

Spring – Developing with Annotations

Annotation-Based Dependency Injection

you can use annotations to the point where you hardly need specify any XML configuration at all
the following annotations can be used to mark fields, methods and constructors:@Autowired – directs Spring to autowire fields, methods or constructors by using the type
(Autowiring means to look for objects defined in Spring with the same name [...]

READ FULL ARTICLE