public interface MessageEndpointFactory
| Modifier and Type | Method and Description |
|---|---|
MessageEndpoint |
createEndpoint(XAResource xaResource)
This is used to create a message endpoint.
|
MessageEndpoint |
createEndpoint(XAResource xaResource,
long timeout)
This is used to create a message endpoint.
|
String |
getActivationName()
Returns a unique name for this message endpoint.
|
boolean |
isDeliveryTransacted(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.
|
MessageEndpoint createEndpoint(XAResource xaResource) throws UnavailableException
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.MessageEndpoint createEndpoint(XAResource xaResource, long timeout) throws UnavailableException
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.boolean isDeliveryTransacted(Method method) throws NoSuchMethodException
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.NoSuchMethodException - indicates that the specified method
does not exist on the target endpoint.String getActivationName()
BootstrapContext.getInstanceName method. This value may be
used on its own if the subscription name needs to be the same for the same
endpoint in each application server instance within a cluster but otherwise
unique. This value may be used in combination with the value returned by the
BootstrapContext.getInstanceName method if the subscription
name needs to be unique to this endpoint.
Since a durable subscription can be used to store messages indefinitely it
is recommended that this name remains unchanged even if the application
server is restarted or reconfigured, or if the application is redeployed.
The combination of this value and the value returned by the
BootstrapContext.getInstanceName method should be no longer
than 128 characters.String instance.BootstrapContextCopyright © 2013 GlassFish Community. All Rights Reserved.