|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.mdb.MDBMessageEndPoint
public class MDBMessageEndPoint
Implementation of the MessageEndPoint interface.
These methods will be
called by the Resource Adapter.
Field Summary | |
---|---|
private EasyBeansMDB |
easyBeansMDB
MDB object Wrapped by this message end point. |
private MDBMessageEndPointFactory |
mdbMessageEndPointFactory
Reference to the message end point factory. |
private javax.transaction.xa.XAResource |
xaResource
XAResource of this message end point. |
Constructor Summary | |
---|---|
MDBMessageEndPoint(MDBMessageEndPointFactory mdbMessageEndPointFactory,
EasyBeansMDB easyBeansMDB)
Constructor : Build an endpoint with a reference to the message end point factory. |
Method Summary | |
---|---|
void |
afterDelivery()
This is called by a resource adapter after a message is delivered. |
void |
beforeDelivery(java.lang.reflect.Method method)
This is called by a resource adapter before a message is delivered. |
Factory |
getEasyBeansFactory()
Gets the factory of the bean. |
EasyBeansMDB |
getEasyBeansMDB()
Gets the wrapped Message Driven Bean object. |
protected javax.transaction.xa.XAResource |
getXaResource()
Gets the XAResource of this message end point. |
protected void |
notifyTimeout(Timer timer)
Invokes the timeout method on the bean. |
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(javax.transaction.xa.XAResource xaResource)
Sets the XAResource of this message end point. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private EasyBeansMDB easyBeansMDB
private MDBMessageEndPointFactory mdbMessageEndPointFactory
private javax.transaction.xa.XAResource xaResource
Constructor Detail |
---|
public MDBMessageEndPoint(MDBMessageEndPointFactory mdbMessageEndPointFactory, EasyBeansMDB easyBeansMDB)
mdbMessageEndPointFactory
- the message end point factory.easyBeansMDB
- the message driven bean object that is wrapped.Method Detail |
---|
public void beforeDelivery(java.lang.reflect.Method method) throws java.lang.NoSuchMethodException, javax.resource.ResourceException
beforeDelivery
in interface javax.resource.spi.endpoint.MessageEndpoint
method
- description of a target method. This information about the
intended target method allows an application server to decide
whether to start a transaction during this method call, depending
on the transaction preferences of the target method. The
processing (by the application server) of the actual message
delivery method call on the endpoint must be independent of the
class loader associated with this descriptive method object.
java.lang.NoSuchMethodException
- - indicates that the specified method does
not exist on the target endpoint.
javax.resource.ResourceException
- - generic exception.
ApplicationServerInternalException
- - indicates an error condition
in the application server.
java.lang.IllegalStateException
- - indicates that the endpoint is in an
illegal state for the method invocation. For example, this occurs
when beforeDelivery and afterDelivery method calls are not
paired.
UnavailableException
- - indicates that the endpoint is not
available.public void afterDelivery() throws javax.resource.ResourceException
afterDelivery
in interface javax.resource.spi.endpoint.MessageEndpoint
javax.resource.ResourceException
- - generic exception.
ApplicationServerInternalException
- - indicates an error condition
in the application server.
java.lang.IllegalStateException
- - indicates that the endpoint is in an
illegal state for the method invocation. For example, this occurs
when beforeDelivery and afterDelivery method calls are not
paired.
UnavailableException
- - indicates that the endpoint is not
available.public void release()
release
in interface javax.resource.spi.endpoint.MessageEndpoint
public Factory getEasyBeansFactory()
public EasyBeansMDB getEasyBeansMDB()
protected javax.transaction.xa.XAResource getXaResource()
protected void setXaResource(javax.transaction.xa.XAResource xaResource)
xaResource
- the XAResource of this message end pointprotected void notifyTimeout(Timer timer)
timer
- the given EJB timer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |