Package org.apache.axis2.transport.jms
Class JMSConnectionFactoryManager
- java.lang.Object
-
- org.apache.axis2.transport.jms.JMSConnectionFactoryManager
-
public class JMSConnectionFactoryManager extends Object
Class managing a set ofJMSConnectionFactory
objects.
-
-
Constructor Summary
Constructors Constructor Description JMSConnectionFactoryManager(ParameterInclude trpInDesc)
Construct a Connection factory manager for the JMS transport sender or receiver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JMSConnectionFactory
getJMSConnectionFactory(String name)
Get the JMS connection factory with the given name.JMSConnectionFactory
getJMSConnectionFactory(Map<String,String> props)
Get the JMS connection factory that matches the given properties, i.e. referring to the same underlying connection factory.protected void
handleException(String msg, Exception e)
void
stop()
Stop all connection factories.
-
-
-
Constructor Detail
-
JMSConnectionFactoryManager
public JMSConnectionFactoryManager(ParameterInclude trpInDesc)
Construct a Connection factory manager for the JMS transport sender or receiver- Parameters:
trpInDesc
-
-
-
Method Detail
-
getJMSConnectionFactory
public JMSConnectionFactory getJMSConnectionFactory(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(Map<String,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
-
stop
public void stop()
Stop all connection factories.
-
-