FileDocCategorySizeDatePackage
EJB3TimerService.javaAPI DocJBoss 4.2.12946Fri Jul 13 20:53:54 BST 2007org.jboss.ejb3.timerservice.quartz.jmx

EJB3TimerService

public class EJB3TimerService extends org.jboss.system.ServiceMBeanSupport implements EJB3TimerServiceMBean
Comment
author
Carlo de Wolf
version
$Revision: 60233 $

Fields Summary
private org.jboss.ejb3.timerservice.quartz.QuartzTimerServiceFactory
delegate
private ObjectName
dataSource
Constructors Summary
public EJB3TimerService()

      delegate = new QuartzTimerServiceFactory();
   
Methods Summary
protected voidcreateService()

      super.createService();
   
protected voiddestroyService()

      //this.delegate.shutdown();
      super.destroyService();
   
public javax.management.ObjectNamegetDataSource()

jmx:managed-attribute
return
the object name of the data source to use

      return dataSource;
   
public voidsetDataSource(javax.management.ObjectName dataSource)

jmx:managed-attribute

      this.dataSource = dataSource;
   
public voidsetProperties(java.util.Properties props)

jmx:managed-attribute
param
props

      delegate.setProperties(props);
   
public voidsetSqlProperties(java.util.Properties props)

jmx:managed-attribute
param
props

      delegate.setSqlProperties(props);
   
protected voidstartService()

      super.startService();
      String jndiName = (String) server.getAttribute(dataSource, "BindName");
      delegate.setDataSource(jndiName);
      delegate.start();
   
protected voidstopService()

      delegate.stop();
      super.stopService();