|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.client.jms.JmsFactory
org.marketcetera.client.jms.IncomingJmsFactory
public class IncomingJmsFactory
A factory of incoming Spring-wrapped JMS connections (connection handlers).
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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). |
| Methods inherited from class org.marketcetera.client.jms.JmsFactory |
|---|
getConnectionFactory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IncomingJmsFactory(ConnectionFactory connectionFactory,
ExceptionListener exceptionListener)
connectionFactory - The factory.exceptionListener - The listener. It may be null.| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||