|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.client.AMQConnectionFactory
public class AMQConnectionFactory
Constructor Summary | |
---|---|
AMQConnectionFactory()
|
|
AMQConnectionFactory(ConnectionURL url)
This constructor is never used! |
|
AMQConnectionFactory(String url)
This is the Only constructor used! It is used form the context and from the JNDI objects. |
|
AMQConnectionFactory(String host,
int port,
String virtualPath)
This constructor is never used! |
|
AMQConnectionFactory(String host,
int port,
String defaultUsername,
String defaultPassword,
String virtualPath)
This constructor is never used! |
|
AMQConnectionFactory(String broker,
String username,
String password,
String clientName,
String virtualHost)
This constructor is never used! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AMQConnectionFactory()
public AMQConnectionFactory(String url) throws org.apache.qpid.url.URLSyntaxException
org.apache.qpid.url.URLSyntaxException
public AMQConnectionFactory(ConnectionURL url)
public AMQConnectionFactory(String broker, String username, String password, String clientName, String virtualHost) throws org.apache.qpid.url.URLSyntaxException
org.apache.qpid.url.URLSyntaxException
public AMQConnectionFactory(String host, int port, String virtualPath)
public AMQConnectionFactory(String host, int port, String defaultUsername, String defaultPassword, String virtualPath)
Method Detail |
---|
public final String getDefaultPassword(String password)
public final void setDefaultPassword(String password)
password
- The _defaultPassword to set.public final SSLConfiguration getSSLConfiguration()
public final void setSSLConfiguration(SSLConfiguration sslConfig)
sslConfig
- config to storepublic final String getDefaultUsername(String password)
public final void setDefaultUsername(String username)
username
- The _defaultUsername to set.public final String getHost()
public final void setHost(String host)
host
- The _host to set.public final int getPort()
public final void setPort(int port)
port
- The port to set.public final String getVirtualPath()
public final void setVirtualPath(String path)
path
- The _virtualPath to set.public static String getUniqueClientID()
public Connection createConnection() throws JMSException
createConnection
in interface ConnectionFactory
JMSException
public Connection createConnection(String userName, String password) throws JMSException
createConnection
in interface ConnectionFactory
JMSException
public Connection createConnection(String userName, String password, String id) throws JMSException
JMSException
public QueueConnection createQueueConnection() throws JMSException
createQueueConnection
in interface QueueConnectionFactory
JMSException
public QueueConnection createQueueConnection(String username, String password) throws JMSException
createQueueConnection
in interface QueueConnectionFactory
JMSException
public TopicConnection createTopicConnection() throws JMSException
createTopicConnection
in interface TopicConnectionFactory
JMSException
public TopicConnection createTopicConnection(String username, String password) throws JMSException
createTopicConnection
in interface TopicConnectionFactory
JMSException
public ConnectionURL getConnectionURL()
public String getConnectionURLString()
public final void setConnectionURLString(String url) throws org.apache.qpid.url.URLSyntaxException
org.apache.qpid.url.URLSyntaxException
public Object getObjectInstance(Object obj, Name name, Context ctx, Hashtable env) throws Exception
getObjectInstance
in interface ObjectFactory
obj
- The Reference from JNDIname
- ctx
- env
-
Exception
public Reference getReference() throws NamingException
getReference
in interface Referenceable
NamingException
public XAConnection createXAConnection() throws JMSException
The XAConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAConnection
in interface XAConnectionFactory
JMSException
- If creating the XAConnection fails due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.public XAConnection createXAConnection(String username, String password) throws JMSException
The XAConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAConnection
in interface XAConnectionFactory
username
- the caller's user namepassword
- the caller's password
JMSException
- If creating the XAConnection fails due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.public XATopicConnection createXATopicConnection() throws JMSException
The XATopicConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXATopicConnection
in interface XATopicConnectionFactory
JMSException
- If creating the XATopicConnection fails due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.public XATopicConnection createXATopicConnection(String username, String password) throws JMSException
The XATopicConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXATopicConnection
in interface XATopicConnectionFactory
username
- the caller's user namepassword
- the caller's password
JMSException
- If creating the XATopicConnection fails due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.public XAQueueConnection createXAQueueConnection() throws JMSException
The XAQueueConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAQueueConnection
in interface XAQueueConnectionFactory
JMSException
- If creating the XAQueueConnection fails due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.public XAQueueConnection createXAQueueConnection(String username, String password) throws JMSException
The XAQueueConnection is created in stopped mode. No messages
will be delivered until the Connection.start
method
is explicitly called.
createXAQueueConnection
in interface XAQueueConnectionFactory
username
- the caller's user namepassword
- the caller's password
JMSException
- If creating the XAQueueConnection fails due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |