public class JMSAccessorService extends Object implements Service
| Modifier and Type | Class and Description |
|---|---|
class |
JMSAccessorService.JMSRetryRunnable |
| Modifier and Type | Field and Description |
|---|---|
static String |
CONF_PREFIX |
static String |
CONF_RETRY_INITIAL_DELAY |
static String |
CONF_RETRY_MAX_ATTEMPTS |
static String |
CONF_RETRY_MULTIPLIER |
static String |
JMS_CONNECTION_CONTEXT_IMPL |
static String |
SESSION_OPTS |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
JMSAccessorService() |
| Modifier and Type | Method and Description |
|---|---|
ConnectionContext |
createConnectionContext(JMSConnectionInfo connInfo) |
ConnectionContext |
createProducerConnectionContext(JMSConnectionInfo connInfo) |
void |
destroy()
Destroy the service.
|
Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
void |
init(Services services)
Initialize the service.
|
void |
reestablishConnection(JMSConnectionInfo connInfo)
Reestablish connection for the given JMS connect information
|
void |
registerForNotification(JMSConnectionInfo connInfo,
String topic,
MessageHandler msgHandler)
Register for notifications on a JMS topic.
|
void |
unregisterFromNotification(JMSConnectionInfo connInfo,
String topic)
Unregister from listening to JMS messages on a topic.
|
public static final String CONF_PREFIX
public static final String JMS_CONNECTION_CONTEXT_IMPL
public static final String SESSION_OPTS
public static final String CONF_RETRY_INITIAL_DELAY
public static final String CONF_RETRY_MULTIPLIER
public static final String CONF_RETRY_MAX_ATTEMPTS
public JMSAccessorService()
public void init(Services services) throws ServiceException
ServiceService singleton at start up time.init in interface Serviceservices - services singleton initializing the service.ServiceException - thrown if the service could not initialize.public void registerForNotification(JMSConnectionInfo connInfo, String topic, MessageHandler msgHandler)
connInfo - Information to connect to a JMS compliant messaging service.topic - Topic in which the JMS messages are publishedmsgHandler - Handler which will process the messages received on the topicpublic void unregisterFromNotification(JMSConnectionInfo connInfo, String topic)
connInfo - Information to connect to the JMS compliant messaging service.topic - Topic in which the JMS messages are publishedpublic ConnectionContext createConnectionContext(JMSConnectionInfo connInfo)
public ConnectionContext createProducerConnectionContext(JMSConnectionInfo connInfo)
public void destroy()
ServiceService singleton at shutdown time.public Class<? extends Service> getInterface()
ServicegetInterface in interface Servicepublic void reestablishConnection(JMSConnectionInfo connInfo)
connInfo - JMS connection infoCopyright © 2015 Apache Software Foundation. All Rights Reserved.