org.marketcetera.client.jms
Class OutgoingJmsFactory

java.lang.Object
  extended by org.marketcetera.client.jms.JmsFactory
      extended by org.marketcetera.client.jms.OutgoingJmsFactory

public class OutgoingJmsFactory
extends JmsFactory

A factory of outgoing Spring-wrapped JMS connections (Spring JMS connection templates).

Since:
1.0.0
Version:
$Id: OutgoingJmsFactory.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
OutgoingJmsFactory(ConnectionFactory connectionFactory)
          Creates a new factory that uses the given standard JMS connection factory to create connections.
 
Method Summary
 JmsTemplate createJmsTemplate(String dstName, boolean isDstTopic)
          Returns a new Spring JMS connection template for the given destination (and of the given type), and for a producer which emits objects supported by SimpleMessageConverter.
 JmsTemplate createJmsTemplate(String dstName, boolean isDstTopic, MessageConverter messageConverter)
          Returns a new Spring JMS connection template for the given destination (and of the given type).
 JmsTemplate createJmsTemplateQ(String dstName, boolean isDstTopic)
          Returns a new Spring JMS connection template for the given destination (and of the given type), and for a producer which emits QuickFIX/J messages.
 JmsTemplate createJmsTemplateX(String dstName, boolean isDstTopic)
          Returns a new Spring JMS connection template for the given destination (and of the given type), and for a producer which emits FIX Agnostic trade messages, order message envelopes, or broker status messages, transported using XML.
 
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

OutgoingJmsFactory

public OutgoingJmsFactory(ConnectionFactory connectionFactory)
Creates a new factory that uses the given standard JMS connection factory to create connections.

Parameters:
connectionFactory - The factory.
Method Detail

createJmsTemplate

public JmsTemplate createJmsTemplate(String dstName,
                                     boolean isDstTopic,
                                     MessageConverter messageConverter)
Returns a new Spring JMS connection template for the given destination (and of the given type). The given message converter is used to convert messages from the type used by the producer to the standard JMS message type.

Parameters:
dstName - The destination name.
isDstTopic - True if the destination is a topic.
messageConverter - The converter.
Returns:
The connection template.

createJmsTemplate

public JmsTemplate createJmsTemplate(String dstName,
                                     boolean isDstTopic)
Returns a new Spring JMS connection template for the given destination (and of the given type), and for a producer which emits objects supported by SimpleMessageConverter.

Parameters:
dstName - The destination name.
isDstTopic - True if the destination is a topic.
Returns:
The connection template.

createJmsTemplateQ

public JmsTemplate createJmsTemplateQ(String dstName,
                                      boolean isDstTopic)
Returns a new Spring JMS connection template for the given destination (and of the given type), and for a producer which emits QuickFIX/J messages.

Parameters:
dstName - The destination name.
isDstTopic - True if the destination is a topic.
Returns:
The connection template.

createJmsTemplateX

public JmsTemplate createJmsTemplateX(String dstName,
                                      boolean isDstTopic)
                               throws JAXBException
Returns a new Spring JMS connection template for the given destination (and of the given type), and for a producer which emits FIX Agnostic trade messages, order message envelopes, or broker status messages, transported using XML.

Parameters:
dstName - The destination name.
isDstTopic - True if the destination is a topic.
Returns:
The connection template.
Throws:
JAXBException - Thrown if an error occurs in creating the JMS/XML converter.


Copyright © 2012. All Rights Reserved.