Java Reference
In-Depth Information
Now you can simply start your scheduler with the following Main class. In this way, you don't require
a single line of code for scheduling jobs.
package com.apress.springenterpriserecipes.replicator;
public class Main {
public static void main(String[] args) throws Exception {
new ClassPathXmlApplicationContext("beans.xml");
This chapter discussed JMX and a few of the surrounding specifications. You learned how to export
Spring beans as JMX MBeans, and how to use those MBeans from a client, both remotely and locally by
using Spring's proxies. You published and listened to notification events on a JMX server from Spring.
You built a simple replicator and exposed its configuration through JMX. You learned how to schedule
the replication using the JDK's Timer support, and to use the Quartz Scheduler.
In the next chapter, you will learn about messaging using Spring's support for JMS.
Search WWH ::

Custom Search