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 Connection
createConnection()
Connection
createConnection(String userName, String password)
QueueConnection
createQueueConnection()
QueueConnection
createQueueConnection(String userName, String password)
TopicConnection
createTopicConnection()
TopicConnection
createTopicConnection(String userName, String password)
Reference
getReference()
void
setReference(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:
createConnection
in interfaceConnectionFactory
- Throws:
JMSException
- See Also:
ConnectionFactory.createConnection()
-
createConnection
public Connection createConnection(String userName, String password) throws JMSException
- Specified by:
createConnection
in interfaceConnectionFactory
- Throws:
JMSException
- See Also:
ConnectionFactory.createConnection(java.lang.String, java.lang.String)
-
getReference
public Reference getReference()
- Specified by:
getReference
in interfaceReferenceable
- See Also:
Referenceable.getReference()
-
setReference
public void setReference(Reference reference)
- Specified by:
setReference
in interfaceReferenceable
- See Also:
Referenceable.setReference(javax.naming.Reference)
-
createQueueConnection
public QueueConnection createQueueConnection() throws JMSException
- Specified by:
createQueueConnection
in interfaceQueueConnectionFactory
- Throws:
JMSException
-
createQueueConnection
public QueueConnection createQueueConnection(String userName, String password) throws JMSException
- Specified by:
createQueueConnection
in interfaceQueueConnectionFactory
- Throws:
JMSException
-
createTopicConnection
public TopicConnection createTopicConnection() throws JMSException
- Specified by:
createTopicConnection
in interfaceTopicConnectionFactory
- Throws:
JMSException
-
createTopicConnection
public TopicConnection createTopicConnection(String userName, String password) throws JMSException
- Specified by:
createTopicConnection
in interfaceTopicConnectionFactory
- Throws:
JMSException
-
-