com.caucho.ejb.message
Class JmsResourceAdapter

java.lang.Object
  extended by com.caucho.ejb.message.JmsResourceAdapter
All Implemented Interfaces:
ResourceAdapter

public class JmsResourceAdapter
extends java.lang.Object
implements ResourceAdapter


Constructor Summary
JmsResourceAdapter(java.lang.String ejbName, JmsActivationConfig config)
           
 
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.
 XAResource[] getXAResources(ActivationSpec[] specs)
          Called during crash recovery.
 void setAcknowledgeMode(int acknowledgeMode)
           
 void setConsumerMax(int consumerMax)
           
 void setMessageSelector(java.lang.String selector)
           
 void setSubscriptionName(java.lang.String subscriptionName)
           
 void start(BootstrapContext ctx)
          Called when the resource adapter is started.
 void stop()
          Called when the resource adapter is stopped.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JmsResourceAdapter

public JmsResourceAdapter(java.lang.String ejbName,
                          JmsActivationConfig config)
Method Detail

setMessageSelector

public void setMessageSelector(java.lang.String selector)

setSubscriptionName

public void setSubscriptionName(java.lang.String subscriptionName)

setConsumerMax

public void setConsumerMax(int consumerMax)

setAcknowledgeMode

public void setAcknowledgeMode(int acknowledgeMode)

start

public void start(BootstrapContext ctx)
           throws ResourceAdapterInternalException
Description copied from interface: ResourceAdapter
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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object