Class AuthenticatedConnectionFactory
- java.lang.Object
-
- org.ikasan.component.endpoint.jms.AuthenticatedConnectionFactory
-
- All Implemented Interfaces:
javax.jms.ConnectionFactory
public class AuthenticatedConnectionFactory extends java.lang.Object implements javax.jms.ConnectionFactoryImplementation of an authenticated ConnectionFactory. Use Cases for this are primarily around WebLogic's JMS authentication or Spring wrapped connectionFactories.- Author:
- Ikasan Development Team
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.jms.ConnectionFactoryconnectionFactoryJMS Connection Factory instanceprotected java.lang.StringconnectionFactoryNameJMS Connection Factory name - used if connectionFactory instance not passed
-
Constructor Summary
Constructors Constructor Description AuthenticatedConnectionFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jms.ConnectioncreateConnection()javax.jms.ConnectioncreateConnection(java.lang.String username, java.lang.String password)protected javax.jms.ConnectionFactorygetConnectionFactory(java.util.Properties properties)protected javax.naming.InitialContextgetInitialContext()Factory method (for convenience of testing) for getting the initial contextprotected javax.naming.InitialContextgetInitialContext(java.util.Properties properties)Factory method (for convenience of testing) for getting the initial contextprotected java.util.PropertiesgetProperties()Factory method (for convenience of testing) for getting the propertiesvoidsetConnectionFactory(javax.jms.ConnectionFactory connectionFactory)voidsetConnectionFactoryName(java.lang.String connectionFactoryName)voidsetPassword(java.lang.String password)voidsetProperties(java.util.Properties properties)voidsetUsername(java.lang.String username)
-
-
-
Method Detail
-
setConnectionFactory
public void setConnectionFactory(javax.jms.ConnectionFactory connectionFactory)
-
setConnectionFactoryName
public void setConnectionFactoryName(java.lang.String connectionFactoryName)
-
setProperties
public void setProperties(java.util.Properties properties)
-
setUsername
public void setUsername(java.lang.String username)
-
setPassword
public void setPassword(java.lang.String password)
-
createConnection
public javax.jms.Connection createConnection() throws javax.jms.JMSException- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Throws:
javax.jms.JMSException
-
createConnection
public javax.jms.Connection createConnection(java.lang.String username, java.lang.String password) throws javax.jms.JMSException- Specified by:
createConnectionin interfacejavax.jms.ConnectionFactory- Throws:
javax.jms.JMSException
-
getConnectionFactory
protected javax.jms.ConnectionFactory getConnectionFactory(java.util.Properties properties)
-
getInitialContext
protected javax.naming.InitialContext getInitialContext() throws javax.naming.NamingExceptionFactory method (for convenience of testing) for getting the initial context- Returns:
- Throws:
javax.naming.NamingException
-
getInitialContext
protected javax.naming.InitialContext getInitialContext(java.util.Properties properties) throws javax.naming.NamingExceptionFactory method (for convenience of testing) for getting the initial context- Parameters:
properties-- Returns:
- Throws:
javax.naming.NamingException
-
getProperties
protected java.util.Properties getProperties()
Factory method (for convenience of testing) for getting the properties- Returns:
-
-