org.jboss.messaging.core.jmx
Class JDBCServiceSupport

java.lang.Object
  extended by org.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended by org.jboss.system.ServiceMBeanSupport
          extended by org.jboss.messaging.core.jmx.JDBCServiceSupport
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.kernel.spi.dependency.KernelControllerContextAware, org.jboss.system.Service, org.jboss.system.ServiceMBean
Direct Known Subclasses:
JDBCJMSUserManagerService, JDBCPersistenceManagerService, MessagingPostOfficeService

public abstract class JDBCServiceSupport
extends org.jboss.system.ServiceMBeanSupport

MBean wrapper for any service that needs database attributes

Version:
$Revision: 2684 $ $Id: JDBCServiceSupport.java 2684 2007-05-15 07:31:30Z timfox $
Author:
Tim Fox

Field Summary
protected  boolean createTablesOnStartup
           
protected  javax.sql.DataSource ds
           
protected  java.util.Properties sqlProperties
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
JDBCServiceSupport()
           
 
Method Summary
 java.lang.String getDataSource()
           
 java.lang.String getSqlProperties()
           
 javax.management.ObjectName getTransactionManager()
           
protected  javax.transaction.TransactionManager getTransactionManagerReference()
           
 boolean isCreateTablesOnStartup()
           
 void setCreateTablesOnStartup(boolean b)
           
 void setDataSource(java.lang.String dataSourceJNDIName)
           
 void setSqlProperties(java.lang.String value)
           
 void setTransactionManager(javax.management.ObjectName tmObjectName)
           
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getDeploymentInfo, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, pojoChange, pojoCreate, pojoDestroy, pojoStart, pojoStop, postDeregister, postRegister, preDeregister, preRegister, setKernelControllerContext, start, stop, unsetKernelControllerContext
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, nextNotificationSequenceNumber, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ds

protected javax.sql.DataSource ds

sqlProperties

protected java.util.Properties sqlProperties

createTablesOnStartup

protected boolean createTablesOnStartup
Constructor Detail

JDBCServiceSupport

public JDBCServiceSupport()
Method Detail

startService

protected void startService()
                     throws java.lang.Exception
Overrides:
startService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Overrides:
stopService in class org.jboss.system.ServiceMBeanSupport
Throws:
java.lang.Exception

getSqlProperties

public java.lang.String getSqlProperties()

setSqlProperties

public void setSqlProperties(java.lang.String value)

setDataSource

public void setDataSource(java.lang.String dataSourceJNDIName)
                   throws java.lang.Exception
Throws:
java.lang.Exception

getDataSource

public java.lang.String getDataSource()

setTransactionManager

public void setTransactionManager(javax.management.ObjectName tmObjectName)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getTransactionManager

public javax.management.ObjectName getTransactionManager()

isCreateTablesOnStartup

public boolean isCreateTablesOnStartup()
                                throws java.lang.Exception
Throws:
java.lang.Exception

setCreateTablesOnStartup

public void setCreateTablesOnStartup(boolean b)
                              throws java.lang.Exception
Throws:
java.lang.Exception

getTransactionManagerReference

protected javax.transaction.TransactionManager getTransactionManagerReference()


Copyright © 2006 JBoss Inc. All Rights Reserved.