|
||||||||||
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 RARDeploymentMBean
public void setOldRarDeployment(javax.management.ObjectName oldRarDeployment)
RARDeploymentMBean
setOldRarDeployment
in interface RARDeploymentMBean
oldRarDeployment
- - Value to assign to OldRarDeploymentpublic String getRARName()
RARDeploymentMBean
getRARName
in interface RARDeploymentMBean
public void setRARName(String rarName)
RARDeploymentMBean
setRARName
in interface RARDeploymentMBean
rarName
- The new DisplayName value.public String getConnectionDefinition()
RARDeploymentMBean
getConnectionDefinition
in interface RARDeploymentMBean
public void setConnectionDefinition(String connectionDefinition)
RARDeploymentMBean
setConnectionDefinition
in interface RARDeploymentMBean
connectionDefinition
- - the connection definitionpublic String getVendorName()
RARDeploymentMBean
getVendorName
in interface RARDeploymentMBean
public void setVendorName(String vendorName)
RARDeploymentMBean
setVendorName
in interface RARDeploymentMBean
vendorName
- The new VendorName value.public String getSpecVersion()
RARDeploymentMBean
getSpecVersion
in interface RARDeploymentMBean
public void setSpecVersion(String specVersion)
RARDeploymentMBean
setSpecVersion
in interface RARDeploymentMBean
specVersion
- The new SpecVersion value.public String getEisType()
RARDeploymentMBean
getEisType
in interface RARDeploymentMBean
public void setEisType(String eisType)
RARDeploymentMBean
setEisType
in interface RARDeploymentMBean
eisType
- The new EisType value.public String getVersion()
RARDeploymentMBean
getVersion
in interface RARDeploymentMBean
public void setVersion(String version)
RARDeploymentMBean
setVersion
in interface RARDeploymentMBean
version
- The new Version value.public String getManagedConnectionFactoryClass()
RARDeploymentMBean
getManagedConnectionFactoryClass
in interface RARDeploymentMBean
public void setManagedConnectionFactoryClass(String managedConnectionFactoryClass)
RARDeploymentMBean
setManagedConnectionFactoryClass
in interface RARDeploymentMBean
managedConnectionFactoryClass
- The new ManagedConnectionFactoryClass value.public String getConnectionFactoryInterface()
RARDeploymentMBean
getConnectionFactoryInterface
in interface RARDeploymentMBean
public void setConnectionFactoryInterface(String connectionFactoryInterface)
RARDeploymentMBean
setConnectionFactoryInterface
in interface RARDeploymentMBean
connectionFactoryInterface
- The ConnectionFactoryInterface value.public String getConnectionFactoryImplClass()
RARDeploymentMBean
getConnectionFactoryImplClass
in interface RARDeploymentMBean
public void setConnectionFactoryImplClass(String connectionFactoryImplClass)
RARDeploymentMBean
setConnectionFactoryImplClass
in interface RARDeploymentMBean
connectionFactoryImplClass
- The ConnectionFactoryImplClass value.public String getConnectionInterface()
RARDeploymentMBean
getConnectionInterface
in interface RARDeploymentMBean
public void setConnectionInterface(String connectionInterface)
RARDeploymentMBean
setConnectionInterface
in interface RARDeploymentMBean
connectionInterface
- The ConnectionInterface value.public String getConnectionImplClass()
RARDeploymentMBean
getConnectionImplClass
in interface RARDeploymentMBean
public void setConnectionImplClass(String connectionImplClass)
RARDeploymentMBean
setConnectionImplClass
in interface RARDeploymentMBean
connectionImplClass
- The ConnectionImplClass value.public String getTransactionSupport()
RARDeploymentMBean
getTransactionSupport
in interface RARDeploymentMBean
public void setTransactionSupport(String transactionSupport)
RARDeploymentMBean
setTransactionSupport
in interface RARDeploymentMBean
transactionSupport
- The TransactionSupport value.public Element getManagedConnectionFactoryProperties()
RARDeploymentMBean
getManagedConnectionFactoryProperties
in interface RARDeploymentMBean
public void setManagedConnectionFactoryProperties(Element managedConnectionFactoryProperties)
RARDeploymentMBean
setManagedConnectionFactoryProperties
in interface RARDeploymentMBean
managedConnectionFactoryProperties
- The ManagedConnectionFactoryProperties value.public String getAuthenticationMechanismType()
RARDeploymentMBean
getAuthenticationMechanismType
in interface RARDeploymentMBean
public void setAuthenticationMechanismType(String authenticationMechanismType)
RARDeploymentMBean
setAuthenticationMechanismType
in interface RARDeploymentMBean
authenticationMechanismType
- The AuthenticationMechanismType value.public String getCredentialInterface()
RARDeploymentMBean
getCredentialInterface
in interface RARDeploymentMBean
public void setCredentialInterface(String credentialInterface)
RARDeploymentMBean
setCredentialInterface
in interface RARDeploymentMBean
credentialInterface
- The CredentialInterface value.public boolean isReauthenticationSupport()
RARDeploymentMBean
isReauthenticationSupport
in interface RARDeploymentMBean
public void setReauthenticationSupport(boolean reauthenticationSupport)
RARDeploymentMBean
setReauthenticationSupport
in interface RARDeploymentMBean
reauthenticationSupport
- The ReauthenticationSupport value.public javax.resource.spi.ManagedConnectionFactory getMcfInstance()
RARDeploymentMBean
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
startService
in class org.jboss.system.ServiceMBeanSupport
Exception
protected void stopService()
stopService
in class org.jboss.system.ServiceMBeanSupport
public void setManagedConnectionFactoryAttribute(String name, Class clazz, Object value)
RARDeploymentMBean
setManagedConnectionFactoryAttribute
in interface RARDeploymentMBean
name
- a String
valueclazz
- a Class
valuevalue
- an Object
valueprotected void setManagedConnectionFactoryAttribute(String name, Class clazz, Object value, boolean mustExist)
public Object getManagedConnectionFactoryAttribute(String name)
RARDeploymentMBean
getManagedConnectionFactoryAttribute
method can be used to examine the managed connection factory properties.
getManagedConnectionFactoryAttribute
in interface RARDeploymentMBean
name
- a String
value
Object
valueprotected 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.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
equals
in class Object
public PrintWriter getLogWriter() throws javax.resource.ResourceException
getLogWriter
in interface javax.resource.spi.ManagedConnectionFactory
javax.resource.ResourceException
public String toString()
toString
in class Object
public int hashCode()
hashCode
in interface javax.resource.spi.ManagedConnectionFactory
hashCode
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.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 |