|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
org.jboss.system.ServiceMBeanSupport (src)
org.jboss.resource.connectionmanager.ConnectionFactoryBindingService
Handles the binding of the connection factory into jndi
Field Summary | |
protected java.lang.String |
bindName
The bind name |
protected java.lang.Object |
cf
The connection factory |
protected ObjectName (src) |
cm
The connection manager |
protected java.lang.String |
jndiName
The jndi name |
protected boolean |
useJavaContext
Whether to use the java naming context |
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src) |
server, SERVICE_CONTROLLER_SIG, serviceName |
Fields inherited from interface org.jboss.system.ServiceMBean (src) |
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 |
java.lang.String |
getBindName()
Get the bind name |
ObjectName (src) |
getConnectionManager()
Get the connection manager |
java.lang.String |
getJndiName()
Get the jndi name |
boolean |
isUseJavaContext()
Are we using the java naming context |
void |
setConnectionManager(ObjectName (src) cm)
Set the connection manager |
void |
setJndiName(java.lang.String jndiName)
Set the jndi name |
void |
setUseJavaContext(boolean useJavaContext)
Set whether to use the java naming context |
protected void |
startService()
Sub-classes should override this method to provide custum 'start' logic. |
protected void |
stopService()
Sub-classes should override this method to provide custum 'stop' logic. |
protected void |
unbindConnectionFactory()
Unbind the connection factory into jndi |
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src) |
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 (src) |
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ObjectName (src) cm
protected java.lang.String jndiName
protected java.lang.String bindName
protected boolean useJavaContext
protected java.lang.Object cf
Constructor Detail |
public ConnectionFactoryBindingService()
Method Detail |
protected void startService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService() throws java.lang.Exception
ServiceMBeanSupport (src)
This method is empty, and is provided for convenience when concrete service classes do not need to perform anything specific for this state change.
stopService
in class ServiceMBeanSupport (src)
java.lang.Exception
public ObjectName (src) getConnectionManager()
public void setConnectionManager(ObjectName (src) cm)
cm
- the connection managerpublic java.lang.String getBindName()
public java.lang.String getJndiName()
public void setJndiName(java.lang.String jndiName)
jndiName
- the jndi namepublic boolean isUseJavaContext()
public void setUseJavaContext(boolean useJavaContext)
useJavaContext
- pass true to use the java naming context, false otherwiseprotected void determineBindName() throws java.lang.Exception
java.lang.Exception
protected void createConnectionFactory() throws java.lang.Exception
java.lang.Exception
protected void bindConnectionFactory() throws java.lang.Exception
java.lang.Exception
protected void unbindConnectionFactory() throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |