|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.mx.util.JBossNotificationBroadcasterSupport
org.jboss.system.ServiceMBeanSupport
org.jboss.resource.connectionmanager.ConnectionFactoryBindingService
public class ConnectionFactoryBindingService
Handles the binding of the connection factory into jndi
| 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, getDeploymentInfo, 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, nextNotificationSequenceNumber, 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 |
|---|
protected javax.management.ObjectName cm
protected String jndiName
protected String bindName
protected boolean useJavaContext
protected Object cf
| Constructor Detail |
|---|
public ConnectionFactoryBindingService()
| Method Detail |
|---|
protected void startService()
throws Exception
startService in class org.jboss.system.ServiceMBeanSupportException
protected void stopService()
throws Exception
stopService in class org.jboss.system.ServiceMBeanSupportExceptionpublic javax.management.ObjectName getConnectionManager()
getConnectionManager in interface ConnectionFactoryBindingServiceMBeanpublic void setConnectionManager(javax.management.ObjectName cm)
setConnectionManager in interface ConnectionFactoryBindingServiceMBeancm - the connection managerpublic String getBindName()
getBindName in interface ConnectionFactoryBindingServiceMBeanpublic String getJndiName()
getJndiName in interface ConnectionFactoryBindingServiceMBeanpublic void setJndiName(String jndiName)
setJndiName in interface ConnectionFactoryBindingServiceMBeanjndiName - the jndi namepublic boolean isUseJavaContext()
isUseJavaContext in interface ConnectionFactoryBindingServiceMBeanpublic void setUseJavaContext(boolean useJavaContext)
setUseJavaContext in interface ConnectionFactoryBindingServiceMBeanuseJavaContext - pass true to use the java naming context, false otherwise
protected void determineBindName()
throws Exception
Exception
protected void createConnectionFactory()
throws Exception
Exception
protected void bindConnectionFactory()
throws Exception
Exception
protected void unbindConnectionFactory()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||