ObjectName name = getBrokerAdmin().getJMSJobScheduler();
return (JobSchedulerViewMBean) newProxyInstance(name, JobSchedulerViewMBean.class, true);
}
public Collection<JobFacade> getScheduledJobs() throws Exception {
JobSchedulerViewMBean jobScheduler = getJobScheduler();
List<JobFacade> result = new ArrayList<JobFacade>();
TabularData table = jobScheduler.getAllJobs();
for (Object object : table.values()) {
CompositeData cd = (CompositeData) object;
JobFacade jf = new JobFacade(cd);
result.add(jf);
}