Apache CXF API

org.apache.cxf.transport.jms
Class JMSFactory

java.lang.Object
  extended by org.apache.cxf.transport.jms.JMSFactory

public final class JMSFactory
extends Object

Factory to create JmsTemplates and JmsListeners from configuration and context information


Method Summary
static org.springframework.jms.listener.DefaultMessageListenerContainer createJmsListener(org.springframework.jms.listener.DefaultMessageListenerContainer jmsListener, JMSConfiguration jmsConfig, javax.jms.MessageListener listenerHandler, String destinationName, javax.jms.Destination destination, String messageSelectorPrefix, boolean userCID)
           
static org.springframework.jms.listener.AbstractMessageListenerContainer createJmsListener(EndpointInfo ei, JMSConfiguration jmsConfig, javax.jms.MessageListener listenerHandler, String destinationName)
          Create and start listener using configuration information from jmsConfig.
static org.springframework.jms.listener.DefaultMessageListenerContainer createJmsListener(JMSConfiguration jmsConfig, javax.jms.MessageListener listenerHandler, javax.jms.Destination destination, String messageSelectorPrefix, boolean userCID)
          Create and start listener using configuration information from jmsConfig.
static org.springframework.jms.listener.DefaultMessageListenerContainer createJmsListener(JMSConfiguration jmsConfig, javax.jms.MessageListener listenerHandler, String destination, String messageSelectorPrefix, boolean userCID)
           
static org.springframework.jms.core.JmsTemplate createJmsTemplate(JMSConfiguration jmsConfig, JMSMessageHeadersType messageProperties)
          Create JmsTemplate from configuration information.
static javax.jms.Destination resolveOrCreateDestination(org.springframework.jms.core.JmsTemplate jmsTemplate, String replyToDestinationName, boolean pubSubDomain)
          If the destinationName given is null then a temporary destination is created else the destination name is resolved using the resolver from the jmsConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createJmsTemplate

public static org.springframework.jms.core.JmsTemplate createJmsTemplate(JMSConfiguration jmsConfig,
                                                                         JMSMessageHeadersType messageProperties)
Create JmsTemplate from configuration information. Most settings are taken from jmsConfig. The QoS settings in headers override the settings from jmsConfig

Parameters:
jmsConfig - configuration information
messageProperties - context headers
Returns:

createJmsListener

public static org.springframework.jms.listener.AbstractMessageListenerContainer createJmsListener(EndpointInfo ei,
                                                                                                  JMSConfiguration jmsConfig,
                                                                                                  javax.jms.MessageListener listenerHandler,
                                                                                                  String destinationName)
Create and start listener using configuration information from jmsConfig. Uses resolveOrCreateDestination to determine the destination for the listener.

Parameters:
ei - the EndpointInfo for the listener
jmsConfig - configuration information
listenerHandler - object to be called when a message arrives
destinationName - null for temp dest or a destination name
Returns:

createJmsListener

public static org.springframework.jms.listener.DefaultMessageListenerContainer createJmsListener(JMSConfiguration jmsConfig,
                                                                                                 javax.jms.MessageListener listenerHandler,
                                                                                                 javax.jms.Destination destination,
                                                                                                 String messageSelectorPrefix,
                                                                                                 boolean userCID)
Create and start listener using configuration information from jmsConfig. Uses resolveOrCreateDestination to determine the destination for the listener.

Parameters:
jmsConfig - configuration information
listenerHandler - object to be called when a message arrives
destinationName - null for temp dest or a destination name
messageSelectorPrefix - prefix for the messageselector
Returns:

createJmsListener

public static org.springframework.jms.listener.DefaultMessageListenerContainer createJmsListener(JMSConfiguration jmsConfig,
                                                                                                 javax.jms.MessageListener listenerHandler,
                                                                                                 String destination,
                                                                                                 String messageSelectorPrefix,
                                                                                                 boolean userCID)

createJmsListener

public static org.springframework.jms.listener.DefaultMessageListenerContainer createJmsListener(org.springframework.jms.listener.DefaultMessageListenerContainer jmsListener,
                                                                                                 JMSConfiguration jmsConfig,
                                                                                                 javax.jms.MessageListener listenerHandler,
                                                                                                 String destinationName,
                                                                                                 javax.jms.Destination destination,
                                                                                                 String messageSelectorPrefix,
                                                                                                 boolean userCID)

resolveOrCreateDestination

public static javax.jms.Destination resolveOrCreateDestination(org.springframework.jms.core.JmsTemplate jmsTemplate,
                                                               String replyToDestinationName,
                                                               boolean pubSubDomain)
If the destinationName given is null then a temporary destination is created else the destination name is resolved using the resolver from the jmsConfig

Parameters:
jmsTemplate - template to use for session and resolver
replyToDestinationName - null for temporary destination or a destination name
pubSubDomain - true=pubSub, false=Queues
Returns:
resolved destination

Apache CXF API

Apache CXF