|
||||||||||
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.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 java.lang.String |
MCF_ATTRIBUTE_CHANGED_NOTIFICATION
|
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 | |
RARDeployment()
Default managed constructor for RARDeployment mbeans. |
Method Summary | |
java.lang.Object |
createConnectionFactory()
Creates a connection factory instance. |
java.lang.Object |
createConnectionFactory(ConnectionManager (src) cxManager)
Creates a connection factory instance. |
ManagedConnection (src) |
createManagedConnection(javax.security.auth.Subject subject,
ConnectionRequestInfo (src) cxRequestInfo)
Creates a new ManagedConnection |
boolean |
equals(java.lang.Object other)
Tests object for equality |
java.lang.String |
getAuthenticationMechanismType()
The AuthenticationMechanismType attribute holds the AuthenticationMechanismType from the ra.xml. |
java.lang.String |
getConnectionDefinition()
The connection definition inside the rar, it identifies the unique connection factory |
java.lang.String |
getConnectionFactoryImplClass()
The ConnectionFactoryImplClass attribute holds the ConnectionFactoryImplClass from the ra.xml. |
java.lang.String |
getConnectionFactoryInterface()
The ConnectionFactoryInterface attribute holds the ConnectionFactoryInterface from the ra.xml. |
java.lang.String |
getConnectionImplClass()
The ConnectionImplClass attribute holds the ConnectionImplClass from the ra.xml. |
java.lang.String |
getConnectionInterface()
The ConnectionInterface attribute holds the ConnectionInterface from the ra.xml. |
java.lang.String |
getCredentialInterface()
The CredentialInterface attribute holds the CredentialInterface from the ra.xml. |
java.lang.String |
getEisType()
The EisType attribute holds the EisType from the ra.xml. |
java.io.PrintWriter |
getLogWriter()
Gets the logwriter for this instance. |
java.lang.Object |
getManagedConnectionFactoryAttribute(java.lang.String name)
The getManagedConnectionFactoryAttribute method can be used
to examine the managed connection factory properties. |
java.lang.String |
getManagedConnectionFactoryClass()
The ManagedConnectionFactoryClass attribute holds the ManagedConnectionFactoryClass from the ra.xml. |
org.w3c.dom.Element |
getManagedConnectionFactoryProperties()
The ManagedConnectionFactoryProperties attribute holds the ManagedConnectionFactoryProperties from the ra.xml, together with user supplied values for all or some of these properties. |
ManagedConnectionFactory (src) |
getMcfInstance()
The getMcfInstance method returns the
ManagedConnectionFactory instance represented by this mbean. |
ObjectName (src) |
getOldRarDeployment()
The OldRarDeployment attribute refers to a previous-generation RARDeployment. |
java.lang.String |
getRARName()
The RARName attribute holds the file name of the rar |
java.lang.String |
getSpecVersion()
The SpecVersion attribute holds the SpecVersion from the ra.xml It should be supplied by xslt from ra.xml |
java.lang.String |
getTransactionSupport()
The TransactionSupport attribute holds the TransactionSupport from the ra.xml. |
java.lang.String |
getVendorName()
The VendorName attribute holds the VendorName from the ra.xml It should be supplied by xslt from ra.xml |
java.lang.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. |
ManagedConnection (src) |
matchManagedConnections(java.util.Set connectionSet,
javax.security.auth.Subject subject,
ConnectionRequestInfo (src) cxRequestInfo)
Returns a matching connection from the set. |
void |
setAuthenticationMechanismType(java.lang.String authenticationMechanismType)
Set the AuthenticationMechanismType value. |
void |
setConnectionDefinition(java.lang.String connectionDefinition)
Set the connection definition. |
void |
setConnectionFactoryImplClass(java.lang.String connectionFactoryImplClass)
Set the ConnectionFactoryImplClass value. |
void |
setConnectionFactoryInterface(java.lang.String connectionFactoryInterface)
Set the ConnectionFactoryInterface value. |
void |
setConnectionImplClass(java.lang.String connectionImplClass)
Set the ConnectionImplClass value. |
void |
setConnectionInterface(java.lang.String connectionInterface)
Set the ConnectionInterface value. |
void |
setCredentialInterface(java.lang.String credentialInterface)
Set the CredentialInterface value. |
void |
setEisType(java.lang.String eisType)
Set the EisType value. |
void |
setLogWriter(java.io.PrintWriter out)
Sets the logwriter for this instance. |
void |
setManagedConnectionFactoryAttribute(java.lang.String name,
java.lang.Class clazz,
java.lang.Object value)
The setManagedConnectionFactoryAttribute method can be used to set attributes on the ManagedConnectionFactory from code, without using the xml configuration. |
protected void |
setManagedConnectionFactoryAttribute(java.lang.String name,
java.lang.Class clazz,
java.lang.Object value,
boolean mustExist)
|
void |
setManagedConnectionFactoryClass(java.lang.String managedConnectionFactoryClass)
Set the ManagedConnectionFactoryClass value. |
void |
setManagedConnectionFactoryProperties(org.w3c.dom.Element managedConnectionFactoryProperties)
Set the ManagedConnectionFactoryProperties value. |
protected void |
setMcfProperties(java.util.Collection properties,
boolean mustExist)
|
protected void |
setMcfProperties(org.w3c.dom.Element mcfProps)
|
void |
setOldRarDeployment(ObjectName (src) oldRarDeployment)
Set the value of OldRarDeployment |
void |
setRARName(java.lang.String rarName)
Set the RARName value. |
void |
setReauthenticationSupport(boolean reauthenticationSupport)
Set the ReauthenticationSupport value. |
void |
setSpecVersion(java.lang.String specVersion)
Set the SpecVersion value. |
void |
setTransactionSupport(java.lang.String transactionSupport)
Set the TransactionSupport value. |
void |
setVendorName(java.lang.String vendorName)
Set the VendorName value. |
void |
setVersion(java.lang.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. |
java.lang.String |
toString()
Override toString() so we don't fall fowl an NPE in hashCode |
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String MCF_ATTRIBUTE_CHANGED_NOTIFICATION
Constructor Detail |
public RARDeployment()
Method Detail |
public ObjectName (src) getOldRarDeployment()
public void setOldRarDeployment(ObjectName (src) oldRarDeployment)
oldRarDeployment
- - Value to assign to OldRarDeploymentpublic java.lang.String getRARName()
public void setRARName(java.lang.String rarName)
rarName
- The new DisplayName value.public java.lang.String getConnectionDefinition()
public void setConnectionDefinition(java.lang.String connectionDefinition)
connectionDefinition
- - the connection definitionpublic java.lang.String getVendorName()
public void setVendorName(java.lang.String vendorName)
vendorName
- The new VendorName value.public java.lang.String getSpecVersion()
public void setSpecVersion(java.lang.String specVersion)
specVersion
- The new SpecVersion value.public java.lang.String getEisType()
public void setEisType(java.lang.String eisType)
eisType
- The new EisType value.public java.lang.String getVersion()
public void setVersion(java.lang.String version)
version
- The new Version value.public java.lang.String getManagedConnectionFactoryClass()
public void setManagedConnectionFactoryClass(java.lang.String managedConnectionFactoryClass)
managedConnectionFactoryClass
- The new ManagedConnectionFactoryClass value.public java.lang.String getConnectionFactoryInterface()
public void setConnectionFactoryInterface(java.lang.String connectionFactoryInterface)
connectionFactoryInterface
- The ConnectionFactoryInterface value.public java.lang.String getConnectionFactoryImplClass()
public void setConnectionFactoryImplClass(java.lang.String connectionFactoryImplClass)
connectionFactoryImplClass
- The ConnectionFactoryImplClass value.public java.lang.String getConnectionInterface()
public void setConnectionInterface(java.lang.String connectionInterface)
connectionInterface
- The ConnectionInterface value.public java.lang.String getConnectionImplClass()
public void setConnectionImplClass(java.lang.String connectionImplClass)
connectionImplClass
- The ConnectionImplClass value.public java.lang.String getTransactionSupport()
public void setTransactionSupport(java.lang.String transactionSupport)
transactionSupport
- The TransactionSupport value.public org.w3c.dom.Element getManagedConnectionFactoryProperties()
public void setManagedConnectionFactoryProperties(org.w3c.dom.Element managedConnectionFactoryProperties)
managedConnectionFactoryProperties
- The ManagedConnectionFactoryProperties value.public java.lang.String getAuthenticationMechanismType()
public void setAuthenticationMechanismType(java.lang.String authenticationMechanismType)
authenticationMechanismType
- The AuthenticationMechanismType value.public java.lang.String getCredentialInterface()
public void setCredentialInterface(java.lang.String credentialInterface)
credentialInterface
- The CredentialInterface value.public boolean isReauthenticationSupport()
public void setReauthenticationSupport(boolean reauthenticationSupport)
reauthenticationSupport
- The ReauthenticationSupport value.public ManagedConnectionFactory (src) 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.
ManagedConnectionFactory
valueprotected void startService() throws java.lang.Exception
startManagedConnectionFactory
method here.
creates managedConnectionFactory, creates ConnectionFactory, and binds it in jndi.
Returns the ManagedConnectionFactory to the ConnectionManager that called us.
startService
in class ServiceMBeanSupport (src)
java.lang.Exception
protected void stopService()
stopManagedConnectionFactory
method unbinds the ConnectionFactory
from jndi, releases the ManagedConnectionFactory instane, and releases the
ManagedConnectionFactory class.
stopService
in class ServiceMBeanSupport (src)
public void setManagedConnectionFactoryAttribute(java.lang.String name, java.lang.Class clazz, java.lang.Object value)
name
- a String
valueclazz
- a Class
valuevalue
- an Object
valueprotected void setManagedConnectionFactoryAttribute(java.lang.String name, java.lang.Class clazz, java.lang.Object value, boolean mustExist)
public java.lang.Object getManagedConnectionFactoryAttribute(java.lang.String name)
getManagedConnectionFactoryAttribute
method can be used
to examine the managed connection factory properties.
name
- a String
value
Object
valueprotected void setMcfProperties(java.util.Collection properties, boolean mustExist) throws DeploymentException (src)
DeploymentException (src)
protected void setMcfProperties(org.w3c.dom.Element mcfProps) throws DeploymentException (src)
DeploymentException (src)
public java.lang.Object createConnectionFactory() throws ResourceException (src)
createConnectionFactory
in interface ManagedConnectionFactory (src)
ResourceException (src)
- for a generic errorpublic java.lang.Object createConnectionFactory(ConnectionManager (src) cxManager) throws ResourceException (src)
createConnectionFactory
in interface ManagedConnectionFactory (src)
cxManager
- the connection manager
ResourceException (src)
- for a generic errorpublic ManagedConnection (src) createManagedConnection(javax.security.auth.Subject subject, ConnectionRequestInfo (src) cxRequestInfo) throws ResourceException (src)
createManagedConnection
in interface ManagedConnectionFactory (src)
subject
- the subjectcxRequestInfo
- the connection request info
ResourceException (src)
- for a generic errorpublic boolean equals(java.lang.Object other)
equals
in interface ManagedConnectionFactory (src)
public java.io.PrintWriter getLogWriter() throws ResourceException (src)
getLogWriter
in interface ManagedConnectionFactory (src)
ResourceException (src)
- for a generic errorpublic java.lang.String toString()
public int hashCode()
hashCode
in interface ManagedConnectionFactory (src)
public ManagedConnection (src) matchManagedConnections(java.util.Set connectionSet, javax.security.auth.Subject subject, ConnectionRequestInfo (src) cxRequestInfo) throws ResourceException (src)
matchManagedConnections
in interface ManagedConnectionFactory (src)
connectionSet
- the connection setsubject
- the subjectcxRequestInfo
- the connection request info
ResourceException (src)
- for a generic errorpublic void setLogWriter(java.io.PrintWriter out) throws ResourceException (src)
setLogWriter
in interface ManagedConnectionFactory (src)
out
- the log writer
ResourceException (src)
- for a generic error
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |