|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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. Created: Fri Feb 8 13:44:31 2002
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 |
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 |
getDisplayName()
The DisplayName attribute holds the DisplayName from the ra.xml It should be supplied by xslt from 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 |
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 |
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 |
setDisplayName(String displayName)
Set the DisplayName 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. |
void |
setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
Set the ManagedConnectionFactoryClass value. |
void |
setManagedConnectionFactoryProperties(Element managedConnectionFactoryProperties)
Set the ManagedConnectionFactoryProperties value. |
protected void |
setMcfProperties(Element mcfProps)
|
void |
setOldRarDeployment(javax.management.ObjectName oldRarDeployment)
Set the value of OldRarDeployment |
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 RARDeploymentMBean
public void setOldRarDeployment(javax.management.ObjectName oldRarDeployment)
setOldRarDeployment
in interface RARDeploymentMBean
public String getDisplayName()
getDisplayName
in interface RARDeploymentMBean
public void setDisplayName(String displayName)
setDisplayName
in interface RARDeploymentMBean
displayName
- The new DisplayName value.public String getVendorName()
getVendorName
in interface RARDeploymentMBean
public void setVendorName(String vendorName)
setVendorName
in interface RARDeploymentMBean
vendorName
- The new VendorName value.public String getSpecVersion()
getSpecVersion
in interface RARDeploymentMBean
public void setSpecVersion(String specVersion)
setSpecVersion
in interface RARDeploymentMBean
specVersion
- The new SpecVersion value.public String getEisType()
getEisType
in interface RARDeploymentMBean
public void setEisType(String eisType)
setEisType
in interface RARDeploymentMBean
eisType
- The new EisType value.public String getVersion()
getVersion
in interface RARDeploymentMBean
public void setVersion(String version)
setVersion
in interface RARDeploymentMBean
version
- The new Version value.public String getManagedConnectionFactoryClass()
getManagedConnectionFactoryClass
in interface RARDeploymentMBean
public void setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
setManagedConnectionFactoryClass
in interface RARDeploymentMBean
managedConnectionFactoryClass
- The new ManagedConnectionFactoryClass value.public String getConnectionFactoryInterface()
getConnectionFactoryInterface
in interface RARDeploymentMBean
public void setConnectionFactoryInterface(String connectionFactoryInterface)
setConnectionFactoryInterface
in interface RARDeploymentMBean
connectionFactoryInterface
- The ConnectionFactoryInterface value.public String getConnectionFactoryImplClass()
getConnectionFactoryImplClass
in interface RARDeploymentMBean
public void setConnectionFactoryImplClass(String connectionFactoryImplClass)
setConnectionFactoryImplClass
in interface RARDeploymentMBean
connectionFactoryImplClass
- The ConnectionFactoryImplClass value.public String getConnectionInterface()
getConnectionInterface
in interface RARDeploymentMBean
public void setConnectionInterface(String connectionInterface)
setConnectionInterface
in interface RARDeploymentMBean
connectionInterface
- The ConnectionInterface value.public String getConnectionImplClass()
getConnectionImplClass
in interface RARDeploymentMBean
public void setConnectionImplClass(String connectionImplClass)
setConnectionImplClass
in interface RARDeploymentMBean
connectionImplClass
- The ConnectionImplClass value.public String getTransactionSupport()
getTransactionSupport
in interface RARDeploymentMBean
public void setTransactionSupport(String transactionSupport)
setTransactionSupport
in interface RARDeploymentMBean
transactionSupport
- The TransactionSupport value.public Element getManagedConnectionFactoryProperties()
getManagedConnectionFactoryProperties
in interface RARDeploymentMBean
public void setManagedConnectionFactoryProperties(Element managedConnectionFactoryProperties)
setManagedConnectionFactoryProperties
in interface RARDeploymentMBean
managedConnectionFactoryProperties
- The ManagedConnectionFactoryProperties value.public String getAuthenticationMechanismType()
getAuthenticationMechanismType
in interface RARDeploymentMBean
public void setAuthenticationMechanismType(String authenticationMechanismType)
setAuthenticationMechanismType
in interface RARDeploymentMBean
authenticationMechanismType
- The AuthenticationMechanismType value.public String getCredentialInterface()
getCredentialInterface
in interface RARDeploymentMBean
public void setCredentialInterface(String credentialInterface)
setCredentialInterface
in interface RARDeploymentMBean
credentialInterface
- The CredentialInterface value.public boolean isReauthenticationSupport()
isReauthenticationSupport
in interface RARDeploymentMBean
public void setReauthenticationSupport(boolean reauthenticationSupport)
setReauthenticationSupport
in interface RARDeploymentMBean
reauthenticationSupport
- 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 RARDeploymentMBean
ManagedConnectionFactory
valueprotected 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.
ManagedConnectionFactory
value
Exception
protected 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 RARDeploymentMBean
name
- a String
valueclazz
- a Class
valuevalue
- an Object
valuepublic Object getManagedConnectionFactoryAttribute(String name)
getManagedConnectionFactoryAttribute
method can be used
to examine the managed connection factory properties.
getManagedConnectionFactoryAttribute
in interface RARDeploymentMBean
name
- a String
value
Object
valueprotected 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.ManagedConnectionFactory
javax.resource.ResourceException
public Object createConnectionFactory(javax.resource.spi.ConnectionManager cxManager) throws javax.resource.ResourceException
createConnectionFactory
in interface javax.resource.spi.ManagedConnectionFactory
javax.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.ManagedConnectionFactory
javax.resource.ResourceException
public boolean equals(Object other)
equals
in interface javax.resource.spi.ManagedConnectionFactory
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
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.ManagedConnectionFactory
javax.resource.ResourceException
public void setLogWriter(PrintWriter out) throws javax.resource.ResourceException
setLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |