org.apache.cxf.transport.jms
Class JMSProviderHub

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

public final class JMSProviderHub
extends java.lang.Object

This class acts as the hub of JMS provider usage, creating shared JMS Connections and providing access to a pool of JMS Sessions.

A new JMS connection is created for each each port based - however its likely that in practice the same JMS provider will be specified for each port, and hence the connection resources could be shared accross ports.

For the moment this class is realized as just a container for static methods, but the intention is to support in future sharing of JMS resources accross compatible ports.

Author:
Eoghan Glynn

Method Summary
protected static void connect(JMSTransport jmsTransport)
           
protected static void connect(JMSTransport jmsTransport, ServerConfig jmsDestConfigBean, ServerBehaviorPolicyType runtimePolicy)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

connect

protected static void connect(JMSTransport jmsTransport)
                       throws javax.jms.JMSException,
                              javax.naming.NamingException
Throws:
javax.jms.JMSException
javax.naming.NamingException

connect

protected static void connect(JMSTransport jmsTransport,
                              ServerConfig jmsDestConfigBean,
                              ServerBehaviorPolicyType runtimePolicy)
                       throws javax.jms.JMSException,
                              javax.naming.NamingException
Throws:
javax.jms.JMSException
javax.naming.NamingException


Apache CXF