| java.lang.Object org.ow2.easybeans.container.mdb.MDBMessageEndPoint
All known Subclasses: org.ow2.easybeans.container.mdb.MDBMessageListenerEndPoint,
MDBMessageEndPoint | public class MDBMessageEndPoint implements MessageEndpoint(Code) | | Implementation of the MessageEndPoint interface. These methods will be
called by the Resource Adapter.
author: Florent Benoit |
Method Summary | |
public void | afterDelivery() This is called by a resource adapter after a message is delivered.
throws: ResourceException - - generic exception. throws: ApplicationServerInternalException - - indicates an error conditionin the application server. throws: IllegalStateException - - indicates that the endpoint is in anillegal state for the method invocation. | public void | beforeDelivery(Method method) This is called by a resource adapter before a message is delivered.
Parameters: method - description of a target method. | public Factory | getEasyBeansFactory() Gets the factory of the bean. | public EasyBeansMDB | getEasyBeansMDB() Gets the wrapped Message Driven Bean object. | protected XAResource | getXaResource() Gets the XAResource of this message end point. | protected void | notifyTimeout(Timer timer) Invokes the timeout method on the bean. | public void | release() This method may be called by the resource adapter to indicate that it no
longer needs a proxy endpoint instance. | protected void | setXaResource(XAResource xaResource) Sets the XAResource of this message end point. |
MDBMessageEndPoint | public MDBMessageEndPoint(MDBMessageEndPointFactory mdbMessageEndPointFactory, EasyBeansMDB easyBeansMDB)(Code) | | Constructor : Build an endpoint with a reference to the message end point
factory.
Parameters: mdbMessageEndPointFactory - the message end point factory. Parameters: easyBeansMDB - the message driven bean object that is wrapped. |
afterDelivery | public void afterDelivery() throws ApplicationServerInternalException, IllegalStateException, UnavailableException, ResourceException(Code) | | This is called by a resource adapter after a message is delivered.
throws: ResourceException - - generic exception. throws: ApplicationServerInternalException - - indicates an error conditionin the application server. throws: IllegalStateException - - indicates that the endpoint is in anillegal state for the method invocation. For example, this occurswhen beforeDelivery and afterDelivery method calls are notpaired. throws: UnavailableException - - indicates that the endpoint is notavailable. |
beforeDelivery | public void beforeDelivery(Method method) throws ApplicationServerInternalException, UnavailableException, NoSuchMethodException, IllegalStateException, ResourceException(Code) | | This is called by a resource adapter before a message is delivered.
Parameters: method - description of a target method. This information about theintended target method allows an application server to decidewhether to start a transaction during this method call, dependingon the transaction preferences of the target method. Theprocessing (by the application server) of the actual messagedelivery method call on the endpoint must be independent of theclass loader associated with this descriptive method object. throws: NoSuchMethodException - - indicates that the specified method doesnot exist on the target endpoint. throws: ResourceException - - generic exception. throws: ApplicationServerInternalException - - indicates an error conditionin the application server. throws: IllegalStateException - - indicates that the endpoint is in anillegal state for the method invocation. For example, this occurswhen beforeDelivery and afterDelivery method calls are notpaired. throws: UnavailableException - - indicates that the endpoint is notavailable. |
getEasyBeansFactory | public Factory getEasyBeansFactory()(Code) | | Gets the factory of the bean.
factory of the bean. |
getEasyBeansMDB | public EasyBeansMDB getEasyBeansMDB()(Code) | | Gets the wrapped Message Driven Bean object.
wrapped Message Driven Bean object. |
getXaResource | protected XAResource getXaResource()(Code) | | Gets the XAResource of this message end point.
the XAResource of this message end point |
notifyTimeout | protected void notifyTimeout(Timer timer)(Code) | | Invokes the timeout method on the bean.
Parameters: timer - the given EJB timer |
release | public void release()(Code) | | This method may be called by the resource adapter to indicate that it no
longer needs a proxy endpoint instance. This hint may be used by the
application server for endpoint pooling decisions.
|
setXaResource | protected void setXaResource(XAResource xaResource)(Code) | | Sets the XAResource of this message end point.
Parameters: xaResource - the XAResource of this message end point |
|
|