com.caucho.jms.jca
Class ResourceAdapterImpl

java.lang.Object
  extended by com.caucho.jms.jca.ResourceAdapterImpl
All Implemented Interfaces:
ResourceAdapter

public class ResourceAdapterImpl
extends java.lang.Object
implements ResourceAdapter

The JCA resource adapter.


Constructor Summary
ResourceAdapterImpl()
           
 
Method Summary
 void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
          Called during activation of a message endpoint.
 void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
          Called during deactivation of a message endpoint.
 ConnectionFactory getConnectionFactory()
          Gets the connection factory.
 Destination getDestination()
          Gets the destination
 XAResource[] getXAResources(ActivationSpec[] specs)
          Called during crash recovery.
 void init()
          Initialization.
 void setConnectionFactory(ConnectionFactory factory)
          Sets the connection factory.
 void setDestination(Destination destination)
          Sets the destination
 void start(BootstrapContext ctx)
          Called when the resource adapter is started.
 void stop()
          Called when the resource adapter is stopped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAdapterImpl

public ResourceAdapterImpl()
Method Detail

setConnectionFactory

public void setConnectionFactory(ConnectionFactory factory)
Sets the connection factory.


getConnectionFactory

public ConnectionFactory getConnectionFactory()
Gets the connection factory.


setDestination

public void setDestination(Destination destination)
Sets the destination


getDestination

public Destination getDestination()
Gets the destination


init

public void init()
          throws ConfigException
Initialization.

Throws:
ConfigException

start

public void start(BootstrapContext ctx)
           throws ResourceAdapterInternalException
Called when the resource adapter is started.

Specified by:
start in interface ResourceAdapter
Throws:
ResourceAdapterInternalException

stop

public void stop()
Called when the resource adapter is stopped.

Specified by:
stop in interface ResourceAdapter

endpointActivation

public void endpointActivation(MessageEndpointFactory endpointFactory,
                               ActivationSpec spec)
                        throws NotSupportedException,
                               ResourceException
Called during activation of a message endpoint.

Specified by:
endpointActivation in interface ResourceAdapter
Throws:
NotSupportedException
ResourceException

endpointDeactivation

public void endpointDeactivation(MessageEndpointFactory endpointFactory,
                                 ActivationSpec spec)
Called during deactivation of a message endpoint.

Specified by:
endpointDeactivation in interface ResourceAdapter

getXAResources

public XAResource[] getXAResources(ActivationSpec[] specs)
                            throws ResourceException
Called during crash recovery.

Specified by:
getXAResources in interface ResourceAdapter
Throws:
ResourceException