|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.framework.jca.system.STCResourceAdapter
Abstract class implementing the ResourceAdapter interface. A ResourceAdapter contains operations for lifecycle management and message endpoint setup. Classes extending this class must be a JavaBean.
Constructor Summary | |
STCResourceAdapter()
Constructor for STCResourceAdapter. |
Method Summary | |
void |
createMBean(java.lang.String mbeanClassName,
java.lang.String mbeanName)
Creates the MBean |
STCPropertiesInfo |
createPropertiesInfo()
Creates a new STCPropertiesInfo instance for the the ResourceAdapter properties from the ResourceAdapter configuration model. |
void |
endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory,
javax.resource.spi.ActivationSpec activationSpec)
This is called during the activation of a message endpoint. |
void |
endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory,
javax.resource.spi.ActivationSpec activationSpec)
This is called when a message endpoint is deactivated. |
java.lang.String |
getConfigurationInstance()
Gets the value of the ConfigurationInstance property. |
java.lang.String |
getConfigurationTemplate()
Gets the value of the ConfigurationTemplate property. |
java.lang.String |
getEwayDescription()
Gets the value of the EwayDescription property. |
java.lang.String |
getEwayName()
Gets the value of the EwayName property. |
java.lang.String |
getEwayResourceAdapterClass()
Gets the value of the EwayResourceAdapterClass property. |
java.lang.String |
getEwayResourceAdapterMBeanClass()
Gets the value of the EwayResourceAdapterMBeanClass property. |
java.lang.String |
getEwayResourceAdapterMBeanName()
Gets the value of the EwayResourceAdapterMBeanName property. |
java.lang.String |
getEwayVersion()
Gets the value of the EwayVersion property. |
java.lang.Object |
getMBean()
Gets the RA MBean registered for this RA instance |
java.lang.String |
getSupportedModes()
Gets the value of the SupportedModes property. |
javax.transaction.xa.XAResource[] |
getXAResources(javax.resource.spi.ActivationSpec[] activationSpecs)
This method is called by the application server during crash recovery. |
void |
setConfigurationInstance(java.lang.String configInstance)
Sets the value of the ConfigurationInstance property. |
void |
setConfigurationTemplate(java.lang.String configTemplate)
Sets the value of the ConfigurationTemplate property. |
void |
setEwayDescription(java.lang.String description)
Sets the value of the EwayDescription property. |
void |
setEwayName(java.lang.String name)
Sets the value of the EwayName property. |
void |
setEwayResourceAdapterClass(java.lang.String className)
Sets the value of the EwayResourceAdapterClass property. |
void |
setEwayResourceAdapterMBeanClass(java.lang.String className)
Sets the value of the EwayResourceAdapterMBeanClass property. |
void |
setEwayResourceAdapterMBeanName(java.lang.String mbeanName)
Sets the value of the EwayResourceAdapterMBeanName property. |
void |
setEwayVersion(java.lang.String version)
Sets the value of the EwayVersion property. |
void |
setSupportedModes(java.lang.String inoutModes)
Sets the value of the SupportedModes property. |
void |
start(javax.resource.spi.BootstrapContext bootstrapContext)
This is called when a resource adapter instance is bootstrapped. |
void |
stop()
This is called when a resource adapter instance is undeployed or during application server shutdown. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public STCResourceAdapter()
Method Detail |
public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory, javax.resource.spi.ActivationSpec activationSpec) throws javax.resource.NotSupportedException
endpointActivation
in interface javax.resource.spi.ResourceAdapter
messageEndpointFactory
- A message endpoint factory instance.activationSpec
- An activativation spec JavaBean instance.
javax.resource.NotSupportedException
- if message inflow is not supported by the
ResourceAdapter or if there was a failure in message endpoint
setup.public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory, javax.resource.spi.ActivationSpec activationSpec)
endpointDeactivation
in interface javax.resource.spi.ResourceAdapter
messageEndpointFactory
- A message endpoint factory instance.activationSpec
- An activativation spec JavaBean instance.public javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] activationSpecs) throws javax.resource.ResourceException
getXAResources
in interface javax.resource.spi.ResourceAdapter
activationSpecs
- An array of ActivationSpec JavaBeans each of
which corresponds to a deployed endpoint application that was
active prior to the system crash.
javax.resource.ResourceException
- upon error.public void start(javax.resource.spi.BootstrapContext bootstrapContext) throws javax.resource.spi.ResourceAdapterInternalException
start
in interface javax.resource.spi.ResourceAdapter
bootstrapContext
- A bootstrap context containing references to
useful facilities that could be used by a resource adapter
instance.
javax.resource.spi.ResourceAdapterInternalException
- upon error.public void stop()
stop
in interface javax.resource.spi.ResourceAdapter
public STCPropertiesInfo createPropertiesInfo()
public void setEwayResourceAdapterClass(java.lang.String className) throws java.lang.Exception
className
- String containing the value to be assigned to
EwayResourceAdapterClass.
java.lang.Exception
- upon error.public java.lang.String getEwayResourceAdapterClass()
public java.lang.String getConfigurationTemplate()
public void setConfigurationTemplate(java.lang.String configTemplate) throws java.lang.Exception
configTemplate
- String containing the value to be assigned to
ConfigurationTemplate.
java.lang.Exception
- upon error.public java.lang.String getConfigurationInstance()
public void setConfigurationInstance(java.lang.String configInstance) throws java.lang.Exception
configInstance
- String containing the value to be assigned to
ConfigurationInstance.
java.lang.Exception
- upon error.public void setEwayResourceAdapterMBeanClass(java.lang.String className) throws java.lang.Exception
className
- String containing the value to be assigned to
EwayResourceAdapterMBeanClass.
java.lang.Exception
- upon error.public java.lang.String getEwayResourceAdapterMBeanClass()
public void setEwayResourceAdapterMBeanName(java.lang.String mbeanName) throws java.lang.Exception
java.lang.Exception
- upon error.public java.lang.String getEwayResourceAdapterMBeanName()
public void setEwayName(java.lang.String name)
public java.lang.String getEwayName()
public void setEwayDescription(java.lang.String description)
public java.lang.String getEwayDescription()
public void setEwayVersion(java.lang.String version)
public java.lang.String getEwayVersion()
public void setSupportedModes(java.lang.String inoutModes)
public java.lang.String getSupportedModes()
public java.lang.Object getMBean()
getMBean
in interface STCManagedMaster
public void createMBean(java.lang.String mbeanClassName, java.lang.String mbeanName) throws STCCreateMBeanException
createMBean
in interface STCManagedMaster
mbeanClassName
- classname of MBean impl classmbeanName
- name of MBean
STCCreateMBeanException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |