public class EndpointFactory extends java.lang.Object implements MessageEndpointFactory
Modifier and Type | Field and Description |
---|---|
protected java.util.List<javax.management.ObjectName> |
jmxNames |
Constructor and Description |
---|
EndpointFactory(ActivationSpec activationSpec,
BaseMdbContainer container,
BeanContext beanContext,
MdbInstanceFactory instanceFactory,
MdbInstanceManager instanceManager,
XAResourceWrapper xaResourceWrapper,
boolean usePool) |
Modifier and Type | Method and Description |
---|---|
MessageEndpoint |
createEndpoint(javax.transaction.xa.XAResource xaResource)
This is used to create a message endpoint.
|
MessageEndpoint |
createEndpoint(javax.transaction.xa.XAResource xaResource,
long timeout)
This is used to create a message endpoint.
|
ActivationSpec |
getActivationSpec() |
MdbInstanceFactory |
getInstanceFactory() |
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 or a target method in the
Class returned by the
getBeanClass method, will be transacted or not. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActivationName, getEndpointClass
public EndpointFactory(ActivationSpec activationSpec, BaseMdbContainer container, BeanContext beanContext, MdbInstanceFactory instanceFactory, MdbInstanceManager instanceManager, XAResourceWrapper xaResourceWrapper, boolean usePool)
public ActivationSpec getActivationSpec()
public MdbInstanceFactory getInstanceFactory()
public MessageEndpoint createEndpoint(javax.transaction.xa.XAResource xaResource) throws UnavailableException
MessageEndpointFactory
createEndpoint
in interface MessageEndpointFactory
xaResource
- an optional XAResource
instance used to get transaction notifications when the message delivery
is transacted.UnavailableException
- indicates a transient failure
in creating a message endpoint. Subsequent attempts to create a message
endpoint might succeed.public MessageEndpoint createEndpoint(javax.transaction.xa.XAResource xaResource, long timeout) throws UnavailableException
MessageEndpointFactory
createEndpoint
in interface MessageEndpointFactory
xaResource
- an optional XAResource
instance used to get transaction notifications when the message delivery
is transacted.timeout
- an optional value used to specify the time duration
(in milliseconds) within which the message endpoint needs to be
created by the MessageEndpointFactory
. Otherwise, the
MessageEndpointFactory
rejects the creation of the
MessageEndpoint
with an UnavailableException. Note, this
does not offer real-time guarantees.UnavailableException
- indicates a transient failure
in creating a message endpoint. Subsequent attempts to create a message
endpoint might succeed.public boolean isDeliveryTransacted(java.lang.reflect.Method method) throws java.lang.NoSuchMethodException
MessageEndpointFactory
Class
returned by the
getBeanClass
method, 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.isDeliveryTransacted
in interface 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
- indicates that the specified method
does not exist on the target endpoint.