public class JmsAdapter extends flex.messaging.services.messaging.adapters.MessagingAdapter implements InitializingBean, BeanNameAware, ApplicationEventPublisherAware
MessagingAdapter implementation that enables sending and receiving messages via JMS.| Constructor and Description |
|---|
JmsAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
JmsTemplate |
getJmsTemplate()
Returns the
JmsTemplate used by this adapter |
boolean |
handlesSubscriptions() |
Object |
invoke(flex.messaging.messages.Message flexMessage)
Invoked when a Message is received from a Flex client.
|
Object |
manage(flex.messaging.messages.CommandMessage commandMessage) |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanName(String beanName) |
void |
setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
Sets the
ConnectionFactory to use for sending and receiving JMS messages |
void |
setDestinationResolver(DestinationResolver destinationResolver)
Sets the
DestinationResolver for resolving the JMS destination for this adapter |
void |
setJmsDestination(javax.jms.Destination destination)
Sets the JMS
Destination for messages sent and received by this adapter |
void |
setMessageConverter(MessageConverter messageConverter)
Sets the
MessageConverter for messages sent and received by this adapter. |
void |
setQueueName(String queueName)
Sets the JMS queue name for messages sent and received by this adapter.
|
void |
setTopicName(String topicName)
Sets the JMS topic name for messages sent and received by this adapter.
|
void |
setTransactionManager(PlatformTransactionManager transactionManager)
Sets the
PlatformTransactionManager to be used when sending and receiving messages |
void |
start() |
void |
stop() |
allowSend, allowSubscribe, getSecurityConstraintManager, initialize, setSecurityConstraintManager, validategetAdapterState, getDestination, getLogCategory, setAdapterState, setDestination, setupAdapterControlpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic JmsTemplate getJmsTemplate()
JmsTemplate used by this adapterpublic boolean handlesSubscriptions()
handlesSubscriptions in class flex.messaging.services.ServiceAdapterpublic Object invoke(flex.messaging.messages.Message flexMessage)
invoke in class flex.messaging.services.ServiceAdapterpublic Object manage(flex.messaging.messages.CommandMessage commandMessage)
manage in class flex.messaging.services.ServiceAdapterpublic void setBeanName(String beanName)
setBeanName in interface BeanNameAwarepublic void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
ConnectionFactory to use for sending and receiving JMS messagesconnectionFactory - the connection factorypublic void setDestinationResolver(DestinationResolver destinationResolver)
DestinationResolver for resolving the JMS destination for this adapterdestinationResolver - the destination resolverpublic void setJmsDestination(javax.jms.Destination destination)
Destination for messages sent and received by this adapterdestination - the destinationpublic void setMessageConverter(MessageConverter messageConverter)
MessageConverter for messages sent and received by this adapter.messageConverter - the message converterpublic void setQueueName(String queueName)
queueName - the JMS queue namepublic void setTopicName(String topicName)
topicName - the JMS topic namepublic void setTransactionManager(PlatformTransactionManager transactionManager)
PlatformTransactionManager to be used when sending and receiving messagestransactionManager - the transaction managerpublic void start()
start in interface flex.messaging.FlexComponentstart in class flex.messaging.services.ServiceAdapterpublic void stop()
stop in interface flex.messaging.FlexComponentstop in class flex.messaging.services.ServiceAdapterpublic void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwareCopyright © 2014. All rights reserved.