org.granite.gravity.adapters
Class JMSServiceAdapter
java.lang.Object
org.granite.gravity.adapters.ServiceAdapter
org.granite.gravity.adapters.JMSServiceAdapter
- Direct Known Subclasses:
- ActiveMQServiceAdapter
public class JMSServiceAdapter
- extends ServiceAdapter
- Author:
- William DRAI
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FAILOVER_RETRY_INTERVAL
public static final long DEFAULT_FAILOVER_RETRY_INTERVAL
- See Also:
- Constant Field Values
DEFAULT_FAILOVER_RETRY_COUNT
public static final int DEFAULT_FAILOVER_RETRY_COUNT
- See Also:
- Constant Field Values
jmsConnectionFactory
protected ConnectionFactory jmsConnectionFactory
jmsDestination
protected Destination jmsDestination
jmsClients
protected Map<String,JMSClient> jmsClients
destinationName
protected String destinationName
textMessages
protected boolean textMessages
transactedSessions
protected boolean transactedSessions
acknowledgeMode
protected int acknowledgeMode
messagePriority
protected int messagePriority
deliveryMode
protected int deliveryMode
noLocal
protected boolean noLocal
sessionSelector
protected boolean sessionSelector
failoverRetryInterval
protected long failoverRetryInterval
failoverRetryCount
protected int failoverRetryCount
JMSServiceAdapter
public JMSServiceAdapter()
configure
public void configure(XMap adapterProperties,
XMap destinationProperties)
throws ServiceException
- Overrides:
configure in class ServiceAdapter
- Throws:
ServiceException
getProducerDestination
protected Destination getProducerDestination(String topic)
getConsumerDestination
protected Destination getConsumerDestination(String topic)
start
public void start()
throws ServiceException
- Overrides:
start in class ServiceAdapter
- Throws:
ServiceException
stop
public void stop()
throws ServiceException
- Overrides:
stop in class ServiceAdapter
- Throws:
ServiceException
invoke
public Object invoke(Channel fromClient,
AsyncMessage message)
- Specified by:
invoke in class ServiceAdapter
manage
public Object manage(Channel fromChannel,
CommandMessage message)
- Specified by:
manage in class ServiceAdapter