|
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.TopicConnectionFactory
public class TopicConnectionFactory
Title: SonicMQ Adaptive Pacing (Managed Client Topic Connection Factory)
Description: An implementation of a Managed JMS TopicConnectionFactory
. A client uses a TopicConnectionFactory
object to create TopicConnections objects with a JMS Pub/Sub provider. TopicConnectionFactory
can be used to create a TopicConnection, from which specialized topic-related objects can be created.
A more general, and recommended, approach is to use the ConnectionFactory
The TopicConnectionFactory
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 | |
---|---|
TopicConnectionFactory()
|
|
TopicConnectionFactory(java.lang.String brokerURL)
|
|
TopicConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
|
TopicConnectionFactory(java.lang.String brokerHostName,
int brokerPort,
java.lang.String brokerProtocol,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
|
TopicConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID)
|
|
TopicConnectionFactory(java.lang.String brokerURL,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
|
TopicConnectionFactory(java.lang.String brokerURL,
java.lang.String connectID,
java.lang.String defaultUserName,
java.lang.String defaultPassword)
|
Method Summary | |
---|---|
TopicConnection |
createTopicConnection()
The method creates a new Topic Connection with default user identity. |
TopicConnection |
createTopicConnection(java.lang.String userid,
java.lang.String password)
The method creates a new Topic 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 TopicConnectionFactory() throws JMSException
JMSException
public TopicConnectionFactory(java.lang.String brokerURL) throws JMSException
JMSException
public TopicConnectionFactory(java.lang.String brokerHostName, int brokerPort, java.lang.String brokerProtocol, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
JMSException
public TopicConnectionFactory(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 TopicConnectionFactory(java.lang.String brokerURL, java.lang.String connectID) throws JMSException
JMSException
public TopicConnectionFactory(java.lang.String brokerURL, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
JMSException
public TopicConnectionFactory(java.lang.String brokerURL, java.lang.String connectID, java.lang.String defaultUserName, java.lang.String defaultPassword) throws JMSException
JMSException
Method Detail |
---|
public TopicConnection createTopicConnection() 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 JMS reasons of failure.
createTopicConnection
in interface TopicConnectionFactory
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 TopicConnection createTopicConnection(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 JMS reasons of failure.
createTopicConnection
in interface TopicConnectionFactory
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 |