public class IncomingJmsFactory extends JmsFactory
| Constructor and Description |
|---|
IncomingJmsFactory(ConnectionFactory connectionFactory,
ExceptionListener exceptionListener)
Creates a new factory that uses the given standard JMS
connection factory to create connections, and directs
exceptions to the given listener, if any.
|
| Modifier and Type | Method and Description |
|---|---|
ExceptionListener |
getExceptionListener()
Returns the receiver's exception listener.
|
SimpleMessageListenerContainer |
registerHandler(ReceiveOnlyHandler<?> handler,
String inDstName,
boolean isInDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandler(ReceiveOnlyHandler<?> handler,
String inDstName,
boolean isInDstTopic,
MessageConverter messageConverter)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandler(ReplyHandler<?> handler,
String inDstName,
boolean isInDstTopic,
String replyDstName,
boolean isReplyDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandler(ReplyHandler<?> handler,
String inDstName,
boolean isInDstTopic,
String replyDstName,
boolean isReplyDstTopic,
MessageConverter messageConverter)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerBSX(ReceiveOnlyHandler<BrokerStatus> handler,
String inDstName,
boolean isInDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerBSX(ReplyHandler<BrokerStatus> handler,
String inDstName,
boolean isInDstTopic,
String replyDstName,
boolean isReplyDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerOEX(ReceiveOnlyHandler<OrderEnvelope> handler,
String inDstName,
boolean isInDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerOEX(ReplyHandler<OrderEnvelope> handler,
String inDstName,
boolean isInDstTopic,
String replyDstName,
boolean isReplyDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerQ(ReceiveOnlyHandler<Message> handler,
String inDstName,
boolean isInDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerQ(ReplyHandler<Message> handler,
String inDstName,
boolean isInDstTopic,
String replyDstName,
boolean isReplyDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerTMX(ReceiveOnlyHandler<TradeMessage> handler,
String inDstName,
boolean isInDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
SimpleMessageListenerContainer |
registerHandlerTMX(ReplyHandler<TradeMessage> handler,
String inDstName,
boolean isInDstTopic,
String replyDstName,
boolean isReplyDstTopic)
Registers the given message handler for messages that are
received by the given incoming destination (and of the given
type).
|
getConnectionFactorypublic IncomingJmsFactory(ConnectionFactory connectionFactory, ExceptionListener exceptionListener)
connectionFactory - The factory.exceptionListener - The listener. It may be null.public ExceptionListener getExceptionListener()
public SimpleMessageListenerContainer registerHandler(ReplyHandler<?> handler, String inDstName, boolean isInDstTopic, String replyDstName, boolean isReplyDstTopic, MessageConverter messageConverter)
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.replyDstName - The reply destination name.isReplyDstTopic - True if the reply destination is a topic.messageConverter - The converter.public SimpleMessageListenerContainer registerHandler(ReceiveOnlyHandler<?> handler, String inDstName, boolean isInDstTopic, MessageConverter messageConverter)
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.messageConverter - The converter.public SimpleMessageListenerContainer registerHandler(ReplyHandler<?> handler, String inDstName, boolean isInDstTopic, String replyDstName, boolean isReplyDstTopic)
SimpleMessageConverter. Returns the Spring container of the
handler (listener) for manual bean lifecycle management.handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.replyDstName - The reply destination name.isReplyDstTopic - True if the reply destination is a topic.public SimpleMessageListenerContainer registerHandler(ReceiveOnlyHandler<?> handler, String inDstName, boolean isInDstTopic)
SimpleMessageConverter. Returns the Spring container
of the handler (listener) for manual bean lifecycle management.handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.public SimpleMessageListenerContainer registerHandlerQ(ReplyHandler<Message> handler, String inDstName, boolean isInDstTopic, String replyDstName, boolean isReplyDstTopic)
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.replyDstName - The reply destination name.isReplyDstTopic - True if the reply destination is a topic.public SimpleMessageListenerContainer registerHandlerQ(ReceiveOnlyHandler<Message> handler, String inDstName, boolean isInDstTopic)
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.public SimpleMessageListenerContainer registerHandlerTMX(ReplyHandler<TradeMessage> handler, String inDstName, boolean isInDstTopic, String replyDstName, boolean isReplyDstTopic) throws JAXBException
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.replyDstName - The reply destination name.isReplyDstTopic - True if the reply destination is a topic.JAXBException - Thrown if an error occurs in creating the
JMS/XML converter.public SimpleMessageListenerContainer registerHandlerTMX(ReceiveOnlyHandler<TradeMessage> handler, String inDstName, boolean isInDstTopic) throws JAXBException
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.JAXBException - Thrown if an error occurs in creating the
JMS/XML converter.public SimpleMessageListenerContainer registerHandlerOEX(ReceiveOnlyHandler<OrderEnvelope> handler, String inDstName, boolean isInDstTopic) throws JAXBException
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.JAXBException - Thrown if an error occurs in creating the
JMS/XML converter.public SimpleMessageListenerContainer registerHandlerOEX(ReplyHandler<OrderEnvelope> handler, String inDstName, boolean isInDstTopic, String replyDstName, boolean isReplyDstTopic) throws JAXBException
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.replyDstName - The reply destination name.isReplyDstTopic - True if the reply destination is a topic.JAXBException - Thrown if an error occurs in creating the
JMS/XML converter.public SimpleMessageListenerContainer registerHandlerBSX(ReplyHandler<BrokerStatus> handler, String inDstName, boolean isInDstTopic, String replyDstName, boolean isReplyDstTopic) throws JAXBException
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.replyDstName - The reply destination name.isReplyDstTopic - True if the reply destination is a topic.JAXBException - Thrown if an error occurs in creating the
JMS/XML converter.public SimpleMessageListenerContainer registerHandlerBSX(ReceiveOnlyHandler<BrokerStatus> handler, String inDstName, boolean isInDstTopic) throws JAXBException
handler - The message handler.inDstName - The incoming destination name.isInDstTopic - True if the incoming destination is a topic.JAXBException - Thrown if an error occurs in creating the
JMS/XML converter.Copyright © 2015. All Rights Reserved.