Package org.apache.axis.transport.jms
Class TopicConnector
java.lang.Object
org.apache.axis.transport.jms.JMSConnector
org.apache.axis.transport.jms.TopicConnector
TopicConnector is a concrete JMSConnector subclass that specifically handles
connections to topics (pub-sub domain).
- Author:
- Jaime Meritt (jmeritt@sonicsoftware.com), Richard Chung (rchung@sonicsoftware.com), Dave Chappell (chappell@sonicsoftware.com)
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.axis.transport.jms.JMSConnector
JMSConnector.AsyncConnection, JMSConnector.SyncConnection
-
Field Summary
Fields inherited from class org.apache.axis.transport.jms.JMSConnector
m_adapter, m_allowReceive, m_connectRetryInterval, m_interactRetryInterval, m_jmsurl, m_numRetries, m_numSessions, m_poolTimeout, m_receiveConnection, m_sendConnection, m_timeoutTime
-
Constructor Summary
ConstructorsConstructorDescriptionTopicConnector
(TopicConnectionFactory factory, int numRetries, int numSessions, long connectRetryInterval, long interactRetryInterval, long timeoutTime, boolean allowReceive, String clientID, String username, String password, JMSVendorAdapter adapter, JMSURLHelper jmsurl) -
Method Summary
Modifier and TypeMethodDescriptionprotected JMSConnector.AsyncConnection
createAsyncConnection
(ConnectionFactory factory, Connection connection, String threadName, String clientID, String username, String password) createEndpoint
(Destination destination) Create an endpoint for a queue destination.createEndpoint
(String destination) protected JMSConnector.SyncConnection
createSyncConnection
(ConnectionFactory factory, Connection connection, int numSessions, String threadName, String clientID, String username, String password) protected Connection
internalConnect
(ConnectionFactory connectionFactory, String username, String password) Methods inherited from class org.apache.axis.transport.jms.JMSConnector
createConnectionWithRetry, getClientID, getConnectionFactory, getJMSURL, getNumRetries, getPassword, getUsername, getVendorAdapter, numSessions, shutdown, start, stop
-
Constructor Details
-
TopicConnector
public TopicConnector(TopicConnectionFactory factory, int numRetries, int numSessions, long connectRetryInterval, long interactRetryInterval, long timeoutTime, boolean allowReceive, String clientID, String username, String password, JMSVendorAdapter adapter, JMSURLHelper jmsurl) throws JMSException - Throws:
JMSException
-
-
Method Details
-
internalConnect
protected Connection internalConnect(ConnectionFactory connectionFactory, String username, String password) throws JMSException - Specified by:
internalConnect
in classJMSConnector
- Throws:
JMSException
-
createSyncConnection
protected JMSConnector.SyncConnection createSyncConnection(ConnectionFactory factory, Connection connection, int numSessions, String threadName, String clientID, String username, String password) throws JMSException - Specified by:
createSyncConnection
in classJMSConnector
- Throws:
JMSException
-
createAsyncConnection
protected JMSConnector.AsyncConnection createAsyncConnection(ConnectionFactory factory, Connection connection, String threadName, String clientID, String username, String password) throws JMSException - Specified by:
createAsyncConnection
in classJMSConnector
- Throws:
JMSException
-
createEndpoint
- Specified by:
createEndpoint
in classJMSConnector
-
createEndpoint
Create an endpoint for a queue destination.- Specified by:
createEndpoint
in classJMSConnector
- Parameters:
destination
-- Returns:
- Throws:
JMSException
-