|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.easybeans.container.AbsFactory<EasyBeansMDB>
org.objectweb.easybeans.container.mdb.MDBFactory
org.objectweb.easybeans.container.mdb.MDBMessageEndPointFactory
public class MDBMessageEndPointFactory
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.
Field Summary | |
---|---|
private javax.resource.spi.ActivationSpec |
activationSpec
ActivationSpec object linked to this factory (used to activate or deactive an endpoint factory (us). |
static java.lang.String |
DEFAULT_ACTIVATION_SPEC_NAME
Default name of the activation spec (JORAM). |
private javax.resource.spi.ResourceAdapter |
resourceAdapter
Resource adapter that provides the activation spec implementation. |
Constructor Summary | |
---|---|
MDBMessageEndPointFactory(java.lang.String className,
EZBContainer container,
javax.resource.spi.ActivationSpec activationSpec,
javax.resource.spi.ResourceAdapter resourceAdapter)
Default constructor (delegate to super class). |
Method Summary | |
---|---|
private void |
activate()
Activate this endpoint factory on resource adapter with the activation spec object. |
javax.resource.spi.endpoint.MessageEndpoint |
createEndpoint(javax.transaction.xa.XAResource xaResource)
This is used to create a message endpoint. |
void |
init()
Init the factory. |
private void |
initActivationSpec()
Call setters method on the activation spec object. |
boolean |
isDeliveryTransacted(java.lang.reflect.Method method)
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. |
protected void |
releaseEndPoint(MDBMessageEndPoint mdbMessageEndPoint)
Release an endpoint created by this factory. |
void |
stop()
Stops the factory. |
private void |
validateActivationSpec()
Validate the configuration used p, tje activation spec object. |
Methods inherited from class org.objectweb.easybeans.container.mdb.MDBFactory |
---|
create, getBeanInfo, getMessageDrivenInfo, isMatching, localCall, rpcInvoke, setMessageDrivenInfo, validate |
Methods inherited from class org.objectweb.easybeans.container.AbsFactory |
---|
getBeanClass, getClassName, getContainer, getHashes, getJavaContext, getNamingManager, getPool, injectResources, remove, setBeanClass, setHashes, setJavaContext, setPool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.objectweb.easybeans.pool.PoolFactory |
---|
remove |
Field Detail |
---|
public static final java.lang.String DEFAULT_ACTIVATION_SPEC_NAME
private javax.resource.spi.ActivationSpec activationSpec
private javax.resource.spi.ResourceAdapter resourceAdapter
Constructor Detail |
---|
public MDBMessageEndPointFactory(java.lang.String className, EZBContainer container, javax.resource.spi.ActivationSpec activationSpec, javax.resource.spi.ResourceAdapter resourceAdapter) throws FactoryException
className
- name of this factory (name of class that is managed)container
- the root component of this factory.activationSpec
- the activation Spec object used for
activating/deactivating.resourceAdapter
- the resource adapter used to activate/deactivate
ourself.
FactoryException
- if super constructor failsMethod Detail |
---|
public void init() throws FactoryException
init
in interface Factory
init
in class AbsFactory<EasyBeansMDB>
FactoryException
- if the initialization fails.private void initActivationSpec() throws FactoryException
FactoryException
- if activation spec object is not configured.private void validateActivationSpec() throws FactoryException
FactoryException
- if the validation of the activation spec
implementation object fails.private void activate() throws FactoryException
FactoryException
- if the activation fails.public javax.resource.spi.endpoint.MessageEndpoint createEndpoint(javax.transaction.xa.XAResource xaResource) throws javax.resource.spi.UnavailableException
createEndpoint
in interface javax.resource.spi.endpoint.MessageEndpointFactory
xaResource
- an optional XAResource instance used to get transaction
notifications when the message delivery is transacted.
javax.resource.spi.UnavailableException
- indicates a transient failure in creating a
message endpoint. Subsequent attempts to create a message
endpoint might succeed.protected void releaseEndPoint(MDBMessageEndPoint mdbMessageEndPoint)
mdbMessageEndPoint
- the endpoint to release.public boolean isDeliveryTransacted(java.lang.reflect.Method method) throws java.lang.NoSuchMethodException
isDeliveryTransacted
in interface javax.resource.spi.endpoint.MessageEndpointFactory
method
- description of a target method. This information about the
intended target method allows an application server to find out
whether the target method call will be transacted or not.
java.lang.NoSuchMethodException
- exception to throwpublic void stop()
stop
in interface Factory
stop
in class MDBFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |