| |
|
| org.ow2.easybeans.container.mdb.MDBFactory org.ow2.easybeans.container.mdb.MDBMessageEndPointFactory
MDBMessageEndPointFactory | public class MDBMessageEndPointFactory extends MDBFactory implements MessageEndpointFactory(Code) | | Defines a class that will manage the message end point factory for the MDB.
The super class will manage the pool of message end point.
author: Florent Benoit |
DEFAULT_ACTIVATION_SPEC_NAME | final public static String DEFAULT_ACTIVATION_SPEC_NAME(Code) | | Default name of the activation spec (JORAM).
|
MDBMessageEndPointFactory | public MDBMessageEndPointFactory(String className, EZBContainer container, ActivationSpec activationSpec, ResourceAdapter resourceAdapter) throws FactoryException(Code) | | Default constructor (delegate to super class).
Parameters: className - name of this factory (name of class that is managed) Parameters: container - the root component of this factory. Parameters: activationSpec - the activation Spec object used foractivating/deactivating. Parameters: resourceAdapter - the resource adapter used to activate/deactivateourself. throws: FactoryException - if super constructor fails |
createEndpoint | public MessageEndpoint createEndpoint(XAResource xaResource) throws UnavailableException(Code) | | This is used to create a message endpoint. The message endpoint is
expected to implement the correct message listener type.
Parameters: xaResource - an optional XAResource instance used to get transactionnotifications when the message delivery is transacted. a message endpoint instance. throws: UnavailableException - indicates a transient failure in creating amessage endpoint. Subsequent attempts to create a messageendpoint might succeed. |
createInternalEndpoint | public MDBMessageEndPoint createInternalEndpoint(XAResource xaResource) throws UnavailableException(Code) | | This is used to create a message endpoint. The message endpoint is
expected to implement the correct message listener type.
Parameters: xaResource - an optional XAResource instance used to get transactionnotifications when the message delivery is transacted. a message endpoint instance. throws: UnavailableException - indicates a transient failure in creating amessage endpoint. Subsequent attempts to create a messageendpoint might succeed. |
isDeliveryTransacted | public boolean isDeliveryTransacted(Method method) throws NoSuchMethodException(Code) | | This is used to find out whether message deliveries to a target method on
a message listener interface that is implemented by a message endpoint
will be transacted or not. The message endpoint may indicate its
transacted delivery preferences (at a per method level) through its
deployment descriptor. The message delivery preferences must not change
during the lifetime of a message endpoint.
Parameters: method - description of a target method. This information about theintended target method allows an application server to find outwhether the target method call will be transacted or not. boolean whether the specified method is transacted throws: NoSuchMethodException - exception to throw |
notifyTimeout | public void notifyTimeout(Timer timer)(Code) | | Notified when the timer service send a Timer object.
It has to call the Timed method.
Parameters: timer - the given timer object that will be given to the timer method. |
releaseEndPoint | protected void releaseEndPoint(MDBMessageEndPoint mdbMessageEndPoint)(Code) | | Release an endpoint created by this factory.
Parameters: mdbMessageEndPoint - the endpoint to release. |
stop | public void stop()(Code) | | Stops the factory.
|
|
|
|