com.sun.genericra
Class GenericJMSRA

java.lang.Object
  extended by com.sun.genericra.GenericJMSRAProperties
      extended by com.sun.genericra.GenericJMSRA
All Implemented Interfaces:
java.io.Serializable, javax.resource.spi.ResourceAdapter, javax.resource.spi.ResourceAdapterAssociation

public class GenericJMSRA
extends GenericJMSRAProperties
implements javax.resource.spi.ResourceAdapter

Resource Adapter javabean implementation for JMS resource adapter. Whenever an application server does a start() on the RA java bean, an instance of the javabean will be saved for singleton usage. This is required since admin objects need to obtain default resource adapter instance.

Author:
Sivakumar Thyagarajan, Binod P.G
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sun.genericra.GenericJMSRAProperties
ONE_PER_PHYSICALCONNECTION, PROVIDER_MANAGED
 
Constructor Summary
GenericJMSRA()
           
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory mef, javax.resource.spi.ActivationSpec spec)
           
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory mef, javax.resource.spi.ActivationSpec spec)
           
static GenericJMSRA getInstance()
           
 java.lang.reflect.Method getListeningMethod()
          Retrieves the Method that is called in the MessageListener
 java.lang.String getLogLevel()
           
 ObjectBuilderFactory getObjectBuilderFactory()
           
 javax.resource.spi.work.WorkManager getWorkManager()
           
 javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
           
 void setLogLevel(java.lang.String level)
           
 void start(javax.resource.spi.BootstrapContext context)
           
 void stop()
           
 
Methods inherited from class com.sun.genericra.GenericJMSRAProperties
equals, getCommonSetterMethodName, getConnectionFactoryClassName, getConnectionFactoryProperties, getJndiProperties, getPassword, getProviderIntegrationMode, getQueueClassName, getQueueConnectionFactoryClassName, getResourceAdapter, getRMPolicy, getSupportsXA, getTopicClassName, getTopicConnectionFactoryClassName, getUserName, getXAConnectionFactoryClassName, getXAQueueConnectionFactoryClassName, getXATopicConnectionFactoryClassName, hashCode, setCommonSetterMethodName, setConnectionFactoryClassName, setConnectionFactoryProperties, setJndiProperties, setPassword, setProviderIntegrationMode, setQueueClassName, setQueueConnectionFactoryClassName, setResourceAdapter, setRMPolicy, setSupportsXA, setTopicClassName, setTopicConnectionFactoryClassName, setUserName, setXAConnectionFactoryClassName, setXAQueueConnectionFactoryClassName, setXATopicConnectionFactoryClassName, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GenericJMSRA

public GenericJMSRA()
Method Detail

getInstance

public static GenericJMSRA getInstance()

stop

public void stop()
Specified by:
stop in interface javax.resource.spi.ResourceAdapter

start

public void start(javax.resource.spi.BootstrapContext context)
           throws javax.resource.spi.ResourceAdapterInternalException
Specified by:
start in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.spi.ResourceAdapterInternalException

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory mef,
                               javax.resource.spi.ActivationSpec spec)
                        throws javax.resource.ResourceException
Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException

endpointDeactivation

public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory mef,
                                 javax.resource.spi.ActivationSpec spec)
Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter

getXAResources

public javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
                                                 throws javax.resource.ResourceException
Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException

getWorkManager

public javax.resource.spi.work.WorkManager getWorkManager()

getObjectBuilderFactory

public ObjectBuilderFactory getObjectBuilderFactory()

setLogLevel

public void setLogLevel(java.lang.String level)

getLogLevel

public java.lang.String getLogLevel()

getListeningMethod

public java.lang.reflect.Method getListeningMethod()
Retrieves the Method that is called in the MessageListener