public class JMSServiceAdapter extends ServiceAdapter
| Modifier and Type | Field and Description |
|---|---|
protected int |
acknowledgeMode |
static int |
DEFAULT_FAILOVER_RETRY_COUNT |
static long |
DEFAULT_FAILOVER_RETRY_INTERVAL |
static long |
DEFAULT_RECONNECT_RETRY_INTERVAL |
protected int |
deliveryMode |
protected String |
destinationName |
protected int |
failoverRetryCount |
protected long |
failoverRetryInterval |
protected Map<String,JMSClient> |
jmsClients |
protected ConnectionFactory |
jmsConnectionFactory |
protected Destination |
jmsDestination |
protected int |
messagePriority |
protected boolean |
noLocal |
protected long |
reconnectRetryInterval |
protected boolean |
sessionSelector |
protected boolean |
textMessages |
protected boolean |
transactedSessions |
| Constructor and Description |
|---|
JMSServiceAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(XMap adapterProperties,
XMap destinationProperties) |
protected Destination |
getConsumerDestination(String topic) |
protected Destination |
getProducerDestination(String topic) |
Object |
invoke(Channel fromClient,
AsyncMessage message) |
Object |
manage(Channel fromChannel,
CommandMessage message) |
void |
start() |
void |
stop() |
getAdapterState, getDestination, getGravity, getId, getSecurityPolicy, setAdapterState, setDestination, setGravity, setId, setSecurityPolicypublic static final long DEFAULT_FAILOVER_RETRY_INTERVAL
public static final long DEFAULT_RECONNECT_RETRY_INTERVAL
public static final int DEFAULT_FAILOVER_RETRY_COUNT
protected ConnectionFactory jmsConnectionFactory
protected Destination jmsDestination
protected Map<String,JMSClient> jmsClients
protected String destinationName
protected boolean textMessages
protected boolean transactedSessions
protected int acknowledgeMode
protected int messagePriority
protected int deliveryMode
protected boolean noLocal
protected boolean sessionSelector
protected long failoverRetryInterval
protected int failoverRetryCount
protected long reconnectRetryInterval
public JMSServiceAdapter()
public void configure(XMap adapterProperties, XMap destinationProperties) throws ServiceException
configure in class ServiceAdapterServiceExceptionprotected Destination getProducerDestination(String topic)
protected Destination getConsumerDestination(String topic)
public void start() throws ServiceException
start in class ServiceAdapterServiceExceptionpublic void stop() throws ServiceException
stop in class ServiceAdapterServiceExceptionpublic Object invoke(Channel fromClient, AsyncMessage message)
invoke in class ServiceAdapterpublic Object manage(Channel fromChannel, CommandMessage message)
manage in class ServiceAdapter