|
|||||||||||
| 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.RARDeployment
The RARDeployment mbean manages instantiation and configuration of a ManagedConnectionFactory instance. It is intended to be configured primarily by xslt transformation of the ra.xml from a jca adapter. Until that is implemented, it uses the old RARDeployment and RARDeployer mechanism to obtain information from the ra.xml. Properties for the ManagedConectionFactory should be supplied with their values in the ManagedConnectionFactoryProperties element.
| Field Summary | |
static String |
MCF_ATTRIBUTE_CHANGED_NOTIFICATION
|
| Fields inherited from class org.jboss.system.ServiceMBeanSupport |
server, SERVICE_CONTROLLER_SIG, serviceName |
| Fields inherited from interface org.jboss.resource.connectionmanager.RARDeploymentMBean |
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 | |
RARDeployment()
Default managed constructor for RARDeployment mbeans. |
|
| Method Summary | |
Object |
createConnectionFactory()
Creates a connection factory instance. |
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
Creates a connection factory instance. |
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Creates a new ManagedConnection |
boolean |
equals(Object other)
Tests object for equality |
String |
getAuthenticationMechanismType()
The AuthenticationMechanismType attribute holds the AuthenticationMechanismType from the ra.xml. |
String |
getConnectionDefinition()
The connection definition inside the rar, it identifies the unique connection factory |
String |
getConnectionFactoryImplClass()
The ConnectionFactoryImplClass attribute holds the ConnectionFactoryImplClass from the ra.xml. |
String |
getConnectionFactoryInterface()
The ConnectionFactoryInterface attribute holds the ConnectionFactoryInterface from the ra.xml. |
String |
getConnectionImplClass()
The ConnectionImplClass attribute holds the ConnectionImplClass from the ra.xml. |
String |
getConnectionInterface()
The ConnectionInterface attribute holds the ConnectionInterface from the ra.xml. |
String |
getCredentialInterface()
The CredentialInterface attribute holds the CredentialInterface from the ra.xml. |
String |
getEisType()
The EisType attribute holds the EisType from the ra.xml. |
PrintWriter |
getLogWriter()
Gets the logwriter for this instance. |
Object |
getManagedConnectionFactoryAttribute(String name)
The getManagedConnectionFactoryAttribute method can be used
to examine the managed connection factory properties. |
String |
getManagedConnectionFactoryClass()
The ManagedConnectionFactoryClass attribute holds the ManagedConnectionFactoryClass from the ra.xml. |
Element |
getManagedConnectionFactoryProperties()
The ManagedConnectionFactoryProperties attribute holds the ManagedConnectionFactoryProperties from the ra.xml, together with user supplied values for all or some of these properties. |
javax.resource.spi.ManagedConnectionFactory |
getMcfInstance()
The getMcfInstance method returns the
ManagedConnectionFactory instance represented by this mbean. |
javax.management.ObjectName |
getOldRarDeployment()
The OldRarDeployment attribute refers to a previous-generation RARDeployment. |
String |
getRARName()
The RARName attribute holds the file name of the rar |
String |
getSpecVersion()
The SpecVersion attribute holds the SpecVersion from the ra.xml It should be supplied by xslt from ra.xml |
String |
getTransactionSupport()
The TransactionSupport attribute holds the TransactionSupport from the ra.xml. |
String |
getVendorName()
The VendorName attribute holds the VendorName from the ra.xml It should be supplied by xslt from ra.xml |
String |
getVersion()
The Version attribute holds the Version from the ra.xml. |
int |
hashCode()
Generates a hashCode for this object |
boolean |
isReauthenticationSupport()
The ReauthenticationSupport attribute holds the ReauthenticationSupport from the ra.xml. |
javax.resource.spi.ManagedConnection |
matchManagedConnections(Set connectionSet,
Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
Returns a matching connection from the set. |
void |
setAuthenticationMechanismType(String authenticationMechanismType)
Set the AuthenticationMechanismType value. |
void |
setConnectionDefinition(String connectionDefinition)
Set the connection definition. |
void |
setConnectionFactoryImplClass(String connectionFactoryImplClass)
Set the ConnectionFactoryImplClass value. |
void |
setConnectionFactoryInterface(String connectionFactoryInterface)
Set the ConnectionFactoryInterface value. |
void |
setConnectionImplClass(String connectionImplClass)
Set the ConnectionImplClass value. |
void |
setConnectionInterface(String connectionInterface)
Set the ConnectionInterface value. |
void |
setCredentialInterface(String credentialInterface)
Set the CredentialInterface value. |
void |
setEisType(String eisType)
Set the EisType value. |
void |
setLogWriter(PrintWriter out)
Sets the logwriter for this instance. |
void |
setManagedConnectionFactoryAttribute(String name,
Class clazz,
Object value)
The setManagedConnectionFactoryAttribute method can be used to set attributes on the ManagedConnectionFactory from code, without using the xml configuration. |
protected void |
setManagedConnectionFactoryAttribute(String name,
Class clazz,
Object value,
boolean mustExist)
|
void |
setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
Set the ManagedConnectionFactoryClass value. |
void |
setManagedConnectionFactoryProperties(Element managedConnectionFactoryProperties)
Set the ManagedConnectionFactoryProperties value. |
protected void |
setMcfProperties(Collection properties,
boolean mustExist)
|
protected void |
setMcfProperties(Element mcfProps)
|
void |
setOldRarDeployment(javax.management.ObjectName oldRarDeployment)
Set the value of OldRarDeployment |
void |
setRARName(String rarName)
Set the RARName value. |
void |
setReauthenticationSupport(boolean reauthenticationSupport)
Set the ReauthenticationSupport value. |
void |
setSpecVersion(String specVersion)
Set the SpecVersion value. |
void |
setTransactionSupport(String transactionSupport)
Set the TransactionSupport value. |
void |
setVendorName(String vendorName)
Set the VendorName value. |
void |
setVersion(String version)
Set the Version value. |
protected void |
startService()
Describe startManagedConnectionFactory method here. |
protected void |
stopService()
The stopManagedConnectionFactory method unbinds the ConnectionFactory
from jndi, releases the ManagedConnectionFactory instane, and releases the
ManagedConnectionFactory class. |
| 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, finalize, getClass, 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 |
public static final String MCF_ATTRIBUTE_CHANGED_NOTIFICATION
| Constructor Detail |
public RARDeployment()
| Method Detail |
public javax.management.ObjectName getOldRarDeployment()
getOldRarDeployment in interface RARDeploymentMBeanpublic void setOldRarDeployment(javax.management.ObjectName oldRarDeployment)
setOldRarDeployment in interface RARDeploymentMBeanoldRarDeployment - - Value to assign to OldRarDeploymentpublic String getRARName()
getRARName in interface RARDeploymentMBeanpublic void setRARName(String rarName)
setRARName in interface RARDeploymentMBeanrarName - The new DisplayName value.public String getConnectionDefinition()
getConnectionDefinition in interface RARDeploymentMBeanpublic void setConnectionDefinition(String connectionDefinition)
setConnectionDefinition in interface RARDeploymentMBeanconnectionDefinition - - the connection definitionpublic String getVendorName()
getVendorName in interface RARDeploymentMBeanpublic void setVendorName(String vendorName)
setVendorName in interface RARDeploymentMBeanvendorName - The new VendorName value.public String getSpecVersion()
getSpecVersion in interface RARDeploymentMBeanpublic void setSpecVersion(String specVersion)
setSpecVersion in interface RARDeploymentMBeanspecVersion - The new SpecVersion value.public String getEisType()
getEisType in interface RARDeploymentMBeanpublic void setEisType(String eisType)
setEisType in interface RARDeploymentMBeaneisType - The new EisType value.public String getVersion()
getVersion in interface RARDeploymentMBeanpublic void setVersion(String version)
setVersion in interface RARDeploymentMBeanversion - The new Version value.public String getManagedConnectionFactoryClass()
getManagedConnectionFactoryClass in interface RARDeploymentMBeanpublic void setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
setManagedConnectionFactoryClass in interface RARDeploymentMBeanmanagedConnectionFactoryClass - The new ManagedConnectionFactoryClass value.public String getConnectionFactoryInterface()
getConnectionFactoryInterface in interface RARDeploymentMBeanpublic void setConnectionFactoryInterface(String connectionFactoryInterface)
setConnectionFactoryInterface in interface RARDeploymentMBeanconnectionFactoryInterface - The ConnectionFactoryInterface value.public String getConnectionFactoryImplClass()
getConnectionFactoryImplClass in interface RARDeploymentMBeanpublic void setConnectionFactoryImplClass(String connectionFactoryImplClass)
setConnectionFactoryImplClass in interface RARDeploymentMBeanconnectionFactoryImplClass - The ConnectionFactoryImplClass value.public String getConnectionInterface()
getConnectionInterface in interface RARDeploymentMBeanpublic void setConnectionInterface(String connectionInterface)
setConnectionInterface in interface RARDeploymentMBeanconnectionInterface - The ConnectionInterface value.public String getConnectionImplClass()
getConnectionImplClass in interface RARDeploymentMBeanpublic void setConnectionImplClass(String connectionImplClass)
setConnectionImplClass in interface RARDeploymentMBeanconnectionImplClass - The ConnectionImplClass value.public String getTransactionSupport()
getTransactionSupport in interface RARDeploymentMBeanpublic void setTransactionSupport(String transactionSupport)
setTransactionSupport in interface RARDeploymentMBeantransactionSupport - The TransactionSupport value.public Element getManagedConnectionFactoryProperties()
getManagedConnectionFactoryProperties in interface RARDeploymentMBeanpublic void setManagedConnectionFactoryProperties(Element managedConnectionFactoryProperties)
setManagedConnectionFactoryProperties in interface RARDeploymentMBeanmanagedConnectionFactoryProperties - The ManagedConnectionFactoryProperties value.public String getAuthenticationMechanismType()
getAuthenticationMechanismType in interface RARDeploymentMBeanpublic void setAuthenticationMechanismType(String authenticationMechanismType)
setAuthenticationMechanismType in interface RARDeploymentMBeanauthenticationMechanismType - The AuthenticationMechanismType value.public String getCredentialInterface()
getCredentialInterface in interface RARDeploymentMBeanpublic void setCredentialInterface(String credentialInterface)
setCredentialInterface in interface RARDeploymentMBeancredentialInterface - The CredentialInterface value.public boolean isReauthenticationSupport()
isReauthenticationSupport in interface RARDeploymentMBeanpublic void setReauthenticationSupport(boolean reauthenticationSupport)
setReauthenticationSupport in interface RARDeploymentMBeanreauthenticationSupport - The ReauthenticationSupport value.public javax.resource.spi.ManagedConnectionFactory getMcfInstance()
getMcfInstance method returns the
ManagedConnectionFactory instance represented by this mbean.
It is needed so PasswordCredentials can match up correctly.
This will probably have to be implemented as an interceptor when
the mcf is directly deployed as an mbean.
getMcfInstance in interface RARDeploymentMBeanManagedConnectionFactory value
protected void startService()
throws Exception
startManagedConnectionFactory method here.
creates managedConnectionFactory, creates ConnectionFactory, and binds it in jndi.
Returns the ManagedConnectionFactory to the ConnectionManager that called us.
Exceptionprotected void stopService()
stopManagedConnectionFactory method unbinds the ConnectionFactory
from jndi, releases the ManagedConnectionFactory instane, and releases the
ManagedConnectionFactory class.
public void setManagedConnectionFactoryAttribute(String name, Class clazz, Object value)
setManagedConnectionFactoryAttribute in interface RARDeploymentMBeanname - a String valueclazz - a Class valuevalue - an Object valueprotected void setManagedConnectionFactoryAttribute(String name, Class clazz, Object value, boolean mustExist)
public Object getManagedConnectionFactoryAttribute(String name)
getManagedConnectionFactoryAttribute method can be used
to examine the managed connection factory properties.
getManagedConnectionFactoryAttribute in interface RARDeploymentMBeanname - a String value
Object valueprotected void setMcfProperties(Collection properties, boolean mustExist) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentExceptionprotected void setMcfProperties(Element mcfProps) throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentExceptionpublic Object createConnectionFactory() throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic javax.resource.spi.ManagedConnection createManagedConnection(Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
createManagedConnection in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic boolean equals(Object other)
equals in interface javax.resource.spi.ManagedConnectionFactorypublic PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic int hashCode()
hashCode in interface javax.resource.spi.ManagedConnectionFactorypublic javax.resource.spi.ManagedConnection matchManagedConnections(Set connectionSet, Subject subject, javax.resource.spi.ConnectionRequestInfo cxRequestInfo) throws javax.resource.ResourceException
matchManagedConnections in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
setLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||