站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 connector API Documentation 英文版文档

ConnectionFactoryBindingService (JBoss Connector API) - JBoss 4.0.1 sp1 connector API Documentation 英文版文档


org.jboss.resource.connectionmanager
Class ConnectionFactoryBindingService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.jboss.resource.connectionmanager.ConnectionFactoryBindingService
All Implemented Interfaces:
ConnectionFactoryBindingServiceMBean, javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, org.jboss.system.Service, org.jboss.system.ServiceMBean
Direct Known Subclasses:
WrapperDataSourceService

public class ConnectionFactoryBindingService
extends org.jboss.system.ServiceMBeanSupport
implements ConnectionFactoryBindingServiceMBean

Handles the binding of the connection factory into jndi

Version:
$Revision: 1.2.6.1 $
Author:
Adrian Brock

Field Summary
protected  String bindName
          The bind name
protected  Object cf
          The connection factory
protected  javax.management.ObjectName cm
          The connection manager
protected  String jndiName
          The jndi name
protected  boolean useJavaContext
          Whether to use the java naming context
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.resource.connectionmanager.ConnectionFactoryBindingServiceMBean
OBJECT_NAME
 
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
ConnectionFactoryBindingService()
           
 
Method Summary
protected  void bindConnectionFactory()
          Bind the connection factory into jndi
protected  void createConnectionFactory()
          Create the connection factory
protected  void determineBindName()
          Determine the bind name
 String getBindName()
          Get the bind name
 javax.management.ObjectName getConnectionManager()
          Get the connection manager
 String getJndiName()
          Get the jndi name
 boolean isUseJavaContext()
          Are we using the java naming context
 void setConnectionManager(javax.management.ObjectName cm)
          Set the connection manager
 void setJndiName(String jndiName)
          Set the jndi name
 void setUseJavaContext(boolean useJavaContext)
          Set whether to use the java naming context
protected  void startService()
           
protected  void stopService()
           
protected  void unbindConnectionFactory()
          Unbind the connection factory into jndi
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

cm

protected javax.management.ObjectName cm
The connection manager


jndiName

protected String jndiName
The jndi name


bindName

protected String bindName
The bind name


useJavaContext

protected boolean useJavaContext
Whether to use the java naming context


cf

protected Object cf
The connection factory

Constructor Detail

ConnectionFactoryBindingService

public ConnectionFactoryBindingService()
Method Detail

startService

protected void startService()
                     throws Exception
Throws:
Exception

stopService

protected void stopService()
                    throws Exception
Throws:
Exception

getConnectionManager

public javax.management.ObjectName getConnectionManager()
Get the connection manager

Specified by:
getConnectionManager in interface ConnectionFactoryBindingServiceMBean
Returns:
the connection manager

setConnectionManager

public void setConnectionManager(javax.management.ObjectName cm)
Set the connection manager

Specified by:
setConnectionManager in interface ConnectionFactoryBindingServiceMBean
Parameters:
cm - the connection manager

getBindName

public String getBindName()
Get the bind name

Specified by:
getBindName in interface ConnectionFactoryBindingServiceMBean
Returns:
the real jndi binding

getJndiName

public String getJndiName()
Get the jndi name

Specified by:
getJndiName in interface ConnectionFactoryBindingServiceMBean
Returns:
the jndi name

setJndiName

public void setJndiName(String jndiName)
Set the jndi name

Specified by:
setJndiName in interface ConnectionFactoryBindingServiceMBean
Parameters:
jndiName - the jndi name

isUseJavaContext

public boolean isUseJavaContext()
Are we using the java naming context

Specified by:
isUseJavaContext in interface ConnectionFactoryBindingServiceMBean
Returns:
true when using the java naming context, false otherwise

setUseJavaContext

public void setUseJavaContext(boolean useJavaContext)
Set whether to use the java naming context

Specified by:
setUseJavaContext in interface ConnectionFactoryBindingServiceMBean
Parameters:
useJavaContext - pass true to use the java naming context, false otherwise

determineBindName

protected void determineBindName()
                          throws Exception
Determine the bind name

Throws:
Exception

createConnectionFactory

protected void createConnectionFactory()
                                throws Exception
Create the connection factory

Throws:
Exception

bindConnectionFactory

protected void bindConnectionFactory()
                              throws Exception
Bind the connection factory into jndi

Throws:
Exception

unbindConnectionFactory

protected void unbindConnectionFactory()
                                throws Exception
Unbind the connection factory into jndi

Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.