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 jms helper objects from configuration and context information


Method Summary
static javax.jms.Connection createConnection(JMSConfiguration jmsConfig)
           
static JMSSender createJmsSender(JMSConfiguration jmsConfig, JMSMessageHeadersType messageProperties)
          Create JmsTemplate from configuration information.
static JMSListenerContainer createSimpleJmsListener(JMSConfiguration jmsConfig, javax.jms.Connection connection, javax.jms.MessageListener listenerHandler, javax.jms.Destination destination, String conduitId)
           
static JMSListenerContainer createTargetDestinationListener(org.apache.cxf.service.model.EndpointInfo ei, JMSConfiguration jmsConfig, javax.jms.MessageListener listenerHandler)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createJmsSender

public static JMSSender createJmsSender(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:

createTargetDestinationListener

public static JMSListenerContainer createTargetDestinationListener(org.apache.cxf.service.model.EndpointInfo ei,
                                                                   JMSConfiguration jmsConfig,
                                                                   javax.jms.MessageListener listenerHandler)

createSimpleJmsListener

public static JMSListenerContainer createSimpleJmsListener(JMSConfiguration jmsConfig,
                                                           javax.jms.Connection connection,
                                                           javax.jms.MessageListener listenerHandler,
                                                           javax.jms.Destination destination,
                                                           String conduitId)

createConnection

public static javax.jms.Connection createConnection(JMSConfiguration jmsConfig)
                                             throws javax.jms.JMSException
Throws:
javax.jms.JMSException


Apache CXF