|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprogress.message.jclient.mp.ConnectionFactory
progress.message.jclient.mp.QueueConnectionFactory
public class QueueConnectionFactory
Title: SonicMQ Adaptive Pacing (Managed Client Queue Connection Factory)
Description: An implementation of a Managed JMS QueueConnectionFactory
. A client uses a QueueConnectionFactory
object to create QueueConnection objects with a point-to-point JMS provider. QueueConnectionFactory
can be used to create a QueueConnection, from which specialized queue-related objects can be created.
A more general, and recommended, approach is to use the ConnectionFactory
The QueueConnectionFactory
object can be used to support existing code that already uses it.
See ConnectionFactory
class documentation for additional
functionality details and specific behavior of Managed Client Adaptive Pacing.
Copyright: Copyright (c) 2006
Company: Progress Software
Constructor Summary | |
---|---|
QueueConnectionFactory()
|
|
QueueConnectionFactory(java.lang.String brokerURL)
|
|
QueueConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
|
QueueConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
|
QueueConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID)
|
|
QueueConnectionFactory(java.lang.String brokerURL,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
|
QueueConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
Method Summary | |
---|---|
QueueConnection |
createQueueConnection()
The method creates a new Queue Connection with default user identity. |
QueueConnection |
createQueueConnection(java.lang.String userid,
java.lang.String password)
The method creates a new Queue Connection with the specified user identity. |
javax.naming.Reference |
getReference()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.ConnectionFactory |
---|
createConnection, createConnection |
Methods inherited from interface javax.naming.spi.ObjectFactory |
---|
getObjectInstance |
Constructor Detail |
---|
public QueueConnectionFactory() throws JMSException
JMSException
public QueueConnectionFactory(java.lang.String brokerURL) throws JMSException
JMSException
public QueueConnectionFactory(java.lang.String brokerHostName, int brokerPort, java.lang.String brokerProtocol, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
JMSException
public QueueConnectionFactory(java.lang.String brokerHostName, int brokerPort, java.lang.String brokerProtocol, java.lang.String connectID, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
JMSException
public QueueConnectionFactory(java.lang.String brokerURL, java.lang.String connectID) throws JMSException
JMSException
public QueueConnectionFactory(java.lang.String brokerURL, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
JMSException
public QueueConnectionFactory(java.lang.String brokerURL, java.lang.String connectID, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
JMSException
Method Detail |
---|
public QueueConnection createQueueConnection() throws JMSException
The connection is created in stopped mode. No messages will be delivered until the
Connection.start
method is explicitly called.
If Adaptive Pacing is enabled the Connection inherits these properties from the factory.
Specific session level behavior can be overriden at Session
creation time.
Users should check the Linked Exception for additional reasons of failure.
createQueueConnection
in interface QueueConnectionFactory
JMSException
- If the JMS provider fails to create the connection due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.public QueueConnection createQueueConnection(java.lang.String userid, java.lang.String password) throws JMSException
The connection is created in stopped mode. No messages will be delivered until the
Connection.start
method is explicitly called.
If Adaptive Pacing is enabled the Connection inherits these properties from the factory.
Specific session level behavior can be overriden at Session
creation time.
Users should check the Linked Exception for additional reasons of failure.
createQueueConnection
in interface QueueConnectionFactory
userid
- The caller's user name.password
- The caller's password.
JMSException
- If the JMS provider fails to create the connection due to some internal error.
JMSSecurityException
- If client authentication fails due to an invalid user name or password.public javax.naming.Reference getReference() throws javax.naming.NamingException
getReference
in interface javax.naming.Referenceable
getReference
in class ConnectionFactory
javax.naming.NamingException
|
SonicMQ API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |