public class AMQConnectionFactory extends Object implements javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, javax.jms.TopicConnectionFactory, ObjectFactory, Referenceable, javax.jms.XATopicConnectionFactory, javax.jms.XAQueueConnectionFactory, javax.jms.XAConnectionFactory, Serializable
Modifier and Type | Field and Description |
---|---|
protected static String |
NO_URL_CONFIGURED |
Constructor and Description |
---|
AMQConnectionFactory() |
AMQConnectionFactory(ConnectionURL url) |
AMQConnectionFactory(String url) |
Modifier and Type | Method and Description |
---|---|
AMQConnection |
createConnection() |
AMQConnection |
createConnection(String userName,
String password) |
AMQConnection |
createConnection(String userName,
String password,
String id) |
javax.jms.QueueConnection |
createQueueConnection() |
javax.jms.QueueConnection |
createQueueConnection(String username,
String password) |
javax.jms.TopicConnection |
createTopicConnection() |
javax.jms.TopicConnection |
createTopicConnection(String username,
String password) |
javax.jms.XAConnection |
createXAConnection()
Creates a XAConnection with the default user identity.
|
javax.jms.XAConnection |
createXAConnection(String username,
String password)
Creates a XAConnection with the specified user identity.
|
javax.jms.XAQueueConnection |
createXAQueueConnection()
Creates a XAQueueConnection with the default user identity.
|
javax.jms.XAQueueConnection |
createXAQueueConnection(String username,
String password)
Creates a XAQueueConnection with the specified user identity.
|
javax.jms.XATopicConnection |
createXATopicConnection()
Creates a XATopicConnection with the default user identity.
|
javax.jms.XATopicConnection |
createXATopicConnection(String username,
String password)
Creates a XATopicConnection with the specified user identity.
|
boolean |
equals(Object o) |
ConnectionURL |
getConnectionURL() |
String |
getConnectionURLString() |
Object |
getObjectInstance(Object obj,
Name name,
Context ctx,
Hashtable env)
Deprecated.
Use
ObjectFactory instead |
Reference |
getReference() |
static String |
getUniqueClientID() |
String |
getVirtualPath() |
int |
hashCode() |
void |
setConnectionURLString(String url) |
String |
toString() |
protected static final String NO_URL_CONFIGURED
public AMQConnectionFactory()
public AMQConnectionFactory(String url) throws URLSyntaxException
URLSyntaxException
public AMQConnectionFactory(ConnectionURL url)
public final String getVirtualPath()
public static String getUniqueClientID()
public AMQConnection createConnection() throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSException
public AMQConnection createConnection(String userName, String password) throws javax.jms.JMSException
createConnection
in interface javax.jms.ConnectionFactory
javax.jms.JMSException
public AMQConnection createConnection(String userName, String password, String id) throws javax.jms.JMSException
javax.jms.JMSException
public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSException
createQueueConnection
in interface javax.jms.QueueConnectionFactory
javax.jms.JMSException
public javax.jms.QueueConnection createQueueConnection(String username, String password) throws javax.jms.JMSException
createQueueConnection
in interface javax.jms.QueueConnectionFactory
javax.jms.JMSException
public javax.jms.TopicConnection createTopicConnection() throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
javax.jms.JMSException
public javax.jms.TopicConnection createTopicConnection(String username, String password) throws javax.jms.JMSException
createTopicConnection
in interface javax.jms.TopicConnectionFactory
javax.jms.JMSException
public ConnectionURL getConnectionURL()
public String getConnectionURLString()
public final void setConnectionURLString(String url) throws URLSyntaxException
URLSyntaxException
@Deprecated public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable env) throws Exception
ObjectFactory
insteadgetObjectInstance
in interface ObjectFactory
obj
- The Reference from JNDIname
- ctx
- env
- Exception
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public javax.jms.XAConnection createXAConnection() throws javax.jms.JMSException
The XAConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAConnection
in interface javax.jms.XAConnectionFactory
javax.jms.JMSException
- If creating the XAConnection fails due to some internal error.javax.jms.JMSSecurityException
- If client authentication fails due to an invalid user name or password.public javax.jms.XAConnection createXAConnection(String username, String password) throws javax.jms.JMSException
The XAConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAConnection
in interface javax.jms.XAConnectionFactory
username
- the caller's user namepassword
- the caller's passwordjavax.jms.JMSException
- If creating the XAConnection fails due to some internal error.javax.jms.JMSSecurityException
- If client authentication fails due to an invalid user name or password.public javax.jms.XATopicConnection createXATopicConnection() throws javax.jms.JMSException
The XATopicConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXATopicConnection
in interface javax.jms.XATopicConnectionFactory
javax.jms.JMSException
- If creating the XATopicConnection fails due to some internal error.javax.jms.JMSSecurityException
- If client authentication fails due to an invalid user name or password.public javax.jms.XATopicConnection createXATopicConnection(String username, String password) throws javax.jms.JMSException
The XATopicConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXATopicConnection
in interface javax.jms.XATopicConnectionFactory
username
- the caller's user namepassword
- the caller's passwordjavax.jms.JMSException
- If creating the XATopicConnection fails due to some internal error.javax.jms.JMSSecurityException
- If client authentication fails due to an invalid user name or password.public javax.jms.XAQueueConnection createXAQueueConnection() throws javax.jms.JMSException
The XAQueueConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAQueueConnection
in interface javax.jms.XAQueueConnectionFactory
javax.jms.JMSException
- If creating the XAQueueConnection fails due to some internal error.javax.jms.JMSSecurityException
- If client authentication fails due to an invalid user name or password.public javax.jms.XAQueueConnection createXAQueueConnection(String username, String password) throws javax.jms.JMSException
The XAQueueConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAQueueConnection
in interface javax.jms.XAQueueConnectionFactory
username
- the caller's user namepassword
- the caller's passwordjavax.jms.JMSException
- If creating the XAQueueConnection fails due to some internal error.javax.jms.JMSSecurityException
- If client authentication fails due to an invalid user name or password.Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.