org.apache.activemq.ra
Class ActiveMQConnectionFactory

java.lang.Object
  extended by org.apache.activemq.ra.ActiveMQConnectionFactory
All Implemented Interfaces:
Serializable, ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, Referenceable

public class ActiveMQConnectionFactory
extends Object
implements ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, Referenceable, Serializable

See Also:
Serialized Form

Constructor Summary
ActiveMQConnectionFactory(ActiveMQManagedConnectionFactory factory, ConnectionManager manager, ActiveMQConnectionRequestInfo connectionRequestInfo)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface ConnectionFactory
Throws:
JMSException
See Also:
ConnectionFactory.createConnection()

createConnection

public Connection createConnection(String userName,
                                   String password)
                            throws JMSException
Specified by:
createConnection in interface ConnectionFactory
Throws:
JMSException
See Also:
ConnectionFactory.createConnection(java.lang.String, java.lang.String)

getReference

public Reference getReference()
Specified by:
getReference in interface Referenceable
See Also:
Referenceable.getReference()

setReference

public void setReference(Reference reference)
See Also:
Referenceable.setReference(javax.naming.Reference)

createQueueConnection

public QueueConnection createQueueConnection()
                                      throws JMSException
Specified by:
createQueueConnection in interface QueueConnectionFactory
Throws:
JMSException

createQueueConnection

public QueueConnection createQueueConnection(String userName,
                                             String password)
                                      throws JMSException
Specified by:
createQueueConnection in interface QueueConnectionFactory
Throws:
JMSException

createTopicConnection

public TopicConnection createTopicConnection()
                                      throws JMSException
Specified by:
createTopicConnection in interface TopicConnectionFactory
Throws:
JMSException

createTopicConnection

public TopicConnection createTopicConnection(String userName,
                                             String password)
                                      throws JMSException
Specified by:
createTopicConnection in interface TopicConnectionFactory
Throws:
JMSException


Copyright © 2005-2013 The Apache Software Foundation. All Rights Reserved.