org.apache.axis2.transport.jms
Class JMSConnectionFactoryManager

java.lang.Object
  extended by org.apache.axis2.transport.jms.JMSConnectionFactoryManager

public class JMSConnectionFactoryManager
extends java.lang.Object

Class managing a set of JMSConnectionFactory objects.


Constructor Summary
JMSConnectionFactoryManager(org.apache.axis2.description.ParameterInclude trpInDesc)
          Construct a Connection factory manager for the JMS transport sender or receiver
 
Method Summary
 JMSConnectionFactory getJMSConnectionFactory(java.util.Map<java.lang.String,java.lang.String> props)
          Get the JMS connection factory that matches the given properties, i.e.
 JMSConnectionFactory getJMSConnectionFactory(java.lang.String name)
          Get the JMS connection factory with the given name.
protected  void handleException(java.lang.String msg, java.lang.Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMSConnectionFactoryManager

public JMSConnectionFactoryManager(org.apache.axis2.description.ParameterInclude trpInDesc)
Construct a Connection factory manager for the JMS transport sender or receiver

Parameters:
trpInDesc -
Method Detail

getJMSConnectionFactory

public JMSConnectionFactory getJMSConnectionFactory(java.lang.String name)
Get the JMS connection factory with the given name.

Parameters:
name - the name of the JMS connection factory
Returns:
the JMS connection factory or null if no connection factory with the given name exists

getJMSConnectionFactory

public JMSConnectionFactory getJMSConnectionFactory(java.util.Map<java.lang.String,java.lang.String> props)
Get the JMS connection factory that matches the given properties, i.e. referring to the same underlying connection factory. Used by the JMSSender to determine if already available resources should be used for outgoing messages

Parameters:
props - a Map of connection factory JNDI properties and name
Returns:
the JMS connection factory or null if no connection factory compatible with the given properties exists

handleException

protected void handleException(java.lang.String msg,
                               java.lang.Exception e)
                        throws org.apache.axis2.AxisFault
Throws:
org.apache.axis2.AxisFault


Copyright © 2004-2009 The Apache Software Foundation. All Rights Reserved.