|
||||||||||
| 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
public class 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()
|
Object |
createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
|
javax.resource.spi.ManagedConnection |
createManagedConnection(Subject subject,
javax.resource.spi.ConnectionRequestInfo cxRequestInfo)
|
boolean |
equals(Object other)
|
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()
|
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()
|
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)
|
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)
|
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()
|
protected void |
stopService()
|
String |
toString()
|
| 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, finalize, getClass, notify, notifyAll, 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()
RARDeploymentMBean
getOldRarDeployment in interface RARDeploymentMBeanpublic void setOldRarDeployment(javax.management.ObjectName oldRarDeployment)
RARDeploymentMBean
setOldRarDeployment in interface RARDeploymentMBeanoldRarDeployment - - Value to assign to OldRarDeploymentpublic String getRARName()
RARDeploymentMBean
getRARName in interface RARDeploymentMBeanpublic void setRARName(String rarName)
RARDeploymentMBean
setRARName in interface RARDeploymentMBeanrarName - The new DisplayName value.public String getConnectionDefinition()
RARDeploymentMBean
getConnectionDefinition in interface RARDeploymentMBeanpublic void setConnectionDefinition(String connectionDefinition)
RARDeploymentMBean
setConnectionDefinition in interface RARDeploymentMBeanconnectionDefinition - - the connection definitionpublic String getVendorName()
RARDeploymentMBean
getVendorName in interface RARDeploymentMBeanpublic void setVendorName(String vendorName)
RARDeploymentMBean
setVendorName in interface RARDeploymentMBeanvendorName - The new VendorName value.public String getSpecVersion()
RARDeploymentMBean
getSpecVersion in interface RARDeploymentMBeanpublic void setSpecVersion(String specVersion)
RARDeploymentMBean
setSpecVersion in interface RARDeploymentMBeanspecVersion - The new SpecVersion value.public String getEisType()
RARDeploymentMBean
getEisType in interface RARDeploymentMBeanpublic void setEisType(String eisType)
RARDeploymentMBean
setEisType in interface RARDeploymentMBeaneisType - The new EisType value.public String getVersion()
RARDeploymentMBean
getVersion in interface RARDeploymentMBeanpublic void setVersion(String version)
RARDeploymentMBean
setVersion in interface RARDeploymentMBeanversion - The new Version value.public String getManagedConnectionFactoryClass()
RARDeploymentMBean
getManagedConnectionFactoryClass in interface RARDeploymentMBeanpublic void setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
RARDeploymentMBean
setManagedConnectionFactoryClass in interface RARDeploymentMBeanmanagedConnectionFactoryClass - The new ManagedConnectionFactoryClass value.public String getConnectionFactoryInterface()
RARDeploymentMBean
getConnectionFactoryInterface in interface RARDeploymentMBeanpublic void setConnectionFactoryInterface(String connectionFactoryInterface)
RARDeploymentMBean
setConnectionFactoryInterface in interface RARDeploymentMBeanconnectionFactoryInterface - The ConnectionFactoryInterface value.public String getConnectionFactoryImplClass()
RARDeploymentMBean
getConnectionFactoryImplClass in interface RARDeploymentMBeanpublic void setConnectionFactoryImplClass(String connectionFactoryImplClass)
RARDeploymentMBean
setConnectionFactoryImplClass in interface RARDeploymentMBeanconnectionFactoryImplClass - The ConnectionFactoryImplClass value.public String getConnectionInterface()
RARDeploymentMBean
getConnectionInterface in interface RARDeploymentMBeanpublic void setConnectionInterface(String connectionInterface)
RARDeploymentMBean
setConnectionInterface in interface RARDeploymentMBeanconnectionInterface - The ConnectionInterface value.public String getConnectionImplClass()
RARDeploymentMBean
getConnectionImplClass in interface RARDeploymentMBeanpublic void setConnectionImplClass(String connectionImplClass)
RARDeploymentMBean
setConnectionImplClass in interface RARDeploymentMBeanconnectionImplClass - The ConnectionImplClass value.public String getTransactionSupport()
RARDeploymentMBean
getTransactionSupport in interface RARDeploymentMBeanpublic void setTransactionSupport(String transactionSupport)
RARDeploymentMBean
setTransactionSupport in interface RARDeploymentMBeantransactionSupport - The TransactionSupport value.public Element getManagedConnectionFactoryProperties()
RARDeploymentMBean
getManagedConnectionFactoryProperties in interface RARDeploymentMBeanpublic void setManagedConnectionFactoryProperties(Element managedConnectionFactoryProperties)
RARDeploymentMBean
setManagedConnectionFactoryProperties in interface RARDeploymentMBeanmanagedConnectionFactoryProperties - The ManagedConnectionFactoryProperties value.public String getAuthenticationMechanismType()
RARDeploymentMBean
getAuthenticationMechanismType in interface RARDeploymentMBeanpublic void setAuthenticationMechanismType(String authenticationMechanismType)
RARDeploymentMBean
setAuthenticationMechanismType in interface RARDeploymentMBeanauthenticationMechanismType - The AuthenticationMechanismType value.public String getCredentialInterface()
RARDeploymentMBean
getCredentialInterface in interface RARDeploymentMBeanpublic void setCredentialInterface(String credentialInterface)
RARDeploymentMBean
setCredentialInterface in interface RARDeploymentMBeancredentialInterface - The CredentialInterface value.public boolean isReauthenticationSupport()
RARDeploymentMBean
isReauthenticationSupport in interface RARDeploymentMBeanpublic void setReauthenticationSupport(boolean reauthenticationSupport)
RARDeploymentMBean
setReauthenticationSupport in interface RARDeploymentMBeanreauthenticationSupport - The ReauthenticationSupport value.public javax.resource.spi.ManagedConnectionFactory getMcfInstance()
RARDeploymentMBeangetMcfInstance 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
startService in class org.jboss.system.ServiceMBeanSupportExceptionprotected void stopService()
stopService in class org.jboss.system.ServiceMBeanSupport
public void setManagedConnectionFactoryAttribute(String name,
Class clazz,
Object value)
RARDeploymentMBean
setManagedConnectionFactoryAttribute in interface RARDeploymentMBeanname - a String valueclazz - a Class valuevalue - an Object value
protected void setManagedConnectionFactoryAttribute(String name,
Class clazz,
Object value,
boolean mustExist)
public Object getManagedConnectionFactoryAttribute(String name)
RARDeploymentMBeangetManagedConnectionFactoryAttribute method can be used to examine the managed connection factory properties.
getManagedConnectionFactoryAttribute in interface RARDeploymentMBeanname - a String value
Object value
protected void setMcfProperties(Collection properties,
boolean mustExist)
throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
protected void setMcfProperties(Element mcfProps)
throws org.jboss.deployment.DeploymentException
org.jboss.deployment.DeploymentException
public Object createConnectionFactory()
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager)
throws javax.resource.ResourceException
createConnectionFactory in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceException
public 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.ManagedConnectionFactoryequals in class Object
public PrintWriter getLogWriter()
throws javax.resource.ResourceException
getLogWriter in interface javax.resource.spi.ManagedConnectionFactoryjavax.resource.ResourceExceptionpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in interface javax.resource.spi.ManagedConnectionFactoryhashCode in class Object
public 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.ResourceException
public 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 | |||||||||