Package org.apache.activemq.ra
Class ActiveMQConnectionFactory
- java.lang.Object
-
- org.apache.activemq.ra.ActiveMQConnectionFactory
-
- All Implemented Interfaces:
Serializable,ConnectionFactory,QueueConnectionFactory,TopicConnectionFactory,Referenceable,Referenceable
public class ActiveMQConnectionFactory extends Object implements ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, Referenceable, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActiveMQConnectionFactory(ActiveMQManagedConnectionFactory factory, ConnectionManager manager, ActiveMQConnectionRequestInfo connectionRequestInfo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectioncreateConnection()ConnectioncreateConnection(String userName, String password)QueueConnectioncreateQueueConnection()QueueConnectioncreateQueueConnection(String userName, String password)TopicConnectioncreateTopicConnection()TopicConnectioncreateTopicConnection(String userName, String password)ReferencegetReference()voidsetReference(Reference reference)
-
-
-
Constructor Detail
-
ActiveMQConnectionFactory
public ActiveMQConnectionFactory(ActiveMQManagedConnectionFactory factory, ConnectionManager manager, ActiveMQConnectionRequestInfo connectionRequestInfo)
- Parameters:
factory-manager-connectionRequestInfo-
-
-
Method Detail
-
createConnection
public Connection createConnection() throws JMSException
- Specified by:
createConnectionin interfaceConnectionFactory- Throws:
JMSException- See Also:
ConnectionFactory.createConnection()
-
createConnection
public Connection createConnection(String userName, String password) throws JMSException
- Specified by:
createConnectionin interfaceConnectionFactory- Throws:
JMSException- See Also:
ConnectionFactory.createConnection(java.lang.String, java.lang.String)
-
getReference
public Reference getReference()
- Specified by:
getReferencein interfaceReferenceable- See Also:
Referenceable.getReference()
-
setReference
public void setReference(Reference reference)
- Specified by:
setReferencein interfaceReferenceable- See Also:
Referenceable.setReference(javax.naming.Reference)
-
createQueueConnection
public QueueConnection createQueueConnection() throws JMSException
- Specified by:
createQueueConnectionin interfaceQueueConnectionFactory- Throws:
JMSException
-
createQueueConnection
public QueueConnection createQueueConnection(String userName, String password) throws JMSException
- Specified by:
createQueueConnectionin interfaceQueueConnectionFactory- Throws:
JMSException
-
createTopicConnection
public TopicConnection createTopicConnection() throws JMSException
- Specified by:
createTopicConnectionin interfaceTopicConnectionFactory- Throws:
JMSException
-
createTopicConnection
public TopicConnection createTopicConnection(String userName, String password) throws JMSException
- Specified by:
createTopicConnectionin interfaceTopicConnectionFactory- Throws:
JMSException
-
-