com.ibm.mq.jms
Class MQTopicConnectionFactory

java.lang.Object
  |
  +--com.ibm.mq.jms.MQConnectionFactory
        |
        +--com.ibm.mq.jms.MQTopicConnectionFactory
All Implemented Interfaces:
javax.jms.ConnectionFactory, javax.naming.Referenceable, java.io.Serializable, javax.jms.TopicConnectionFactory
Direct Known Subclasses:
MQXATopicConnectionFactory

public class MQTopicConnectionFactory
extends MQConnectionFactory
implements javax.jms.TopicConnectionFactory, javax.naming.Referenceable, java.io.Serializable

A client uses an MQTopicConnectionFactory object to create TopicConnection objects with a publish/subscribe JMS provider.

See Also:
Serialized Form

Field Summary
   
Constructor Summary
MQTopicConnectionFactory()
          Creates an instance of a TopicConnectionFactory
 
Method Summary
 javax.jms.TopicConnection createTopicConnection()
          Creates a topic connection with default user identity.
 javax.jms.TopicConnection createTopicConnection(java.lang.String userName, java.lang.String password)
          Creates a topic connection with specified user identity.
 
Methods inherited from class com.ibm.mq.jms.MQConnectionFactory
getBrokerCCSubQueue, getBrokerControlQueue, getBrokerPubQueue, getBrokerQueueManager, getBrokerSubQueue, getBrokerVersion, getCCDTURL, getCCSID, getChannel, getCleanupInterval, getCleanupLevel, getClientId, getClientID, getCloneSupport, getConnTag, getDescription, getDirectAuth, getFailIfQuiesce, getHdrCompList, getHostName, getLocalAddress, getMapNameStyle, getMessageSelection, getMQConnectionOptions, getMsgBatchSize, getMsgCompList, getMulticast, getOptimisticPublication, getOutcomeNotification, getPollingInterval, getPort, getProcessDuration, getProxyHostName, getProxyPort, getPubAckInterval, getQueueManager, getReceiveExit, getReceiveExitInit, getReceiveIsolation, getRescanInterval, getSecurityExit, getSecurityExitInit, getSendExit, getSendExitInit, getSparseSubscriptions, getSSLCertStores, getSSLCertStoresAsString, getSSLCipherSuite, getSSLFipsRequired, getSSLPeerName, getSSLResetCount, getSSLSocketFactory, getStatusRefreshInterval, getSubscriptionStore, getSyncpointAllGets, getTargetClientMatching, getTransportType, getUseConnectionPooling, getVersion, setBrokerCCSubQueue, setBrokerControlQueue, setBrokerPubQueue, setBrokerQueueManager, setBrokerSubQueue, setBrokerVersion, setCCDTURL, setCCSID, setChannel, setCleanupInterval, setCleanupLevel, setClientId, setClientID, setCloneSupport, setConnTag, setDescription, setDirectAuth, setFailIfQuiesce, setHdrCompList, setHostName, setLocalAddress, setMapNameStyle, setMessageSelection, setMQConnectionOptions, setMsgBatchSize, setMsgCompList, setMulticast, setOptimisticPublication, setOutcomeNotification, setPollingInterval, setPort, setProcessDuration, setProxyHostName, setProxyPort, setPubAckInterval, setQueueManager, setReceiveExit, setReceiveExitInit, setReceiveIsolation, setRescanInterval, setSecurityExit, setSecurityExitInit, setSendExit, setSendExitInit, setSparseSubscriptions, setSSLCertStores, setSSLCertStores, setSSLCipherSuite, setSSLFipsRequired, setSSLPeerName, setSSLResetCount, setSSLSocketFactory, setStatusRefreshInterval, setSubscriptionStore, setSyncpointAllGets, setTargetClientMatching, setTransportType, setUseConnectionPooling
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MQTopicConnectionFactory

public MQTopicConnectionFactory()
Creates an instance of a TopicConnectionFactory

Method Detail

createTopicConnection

public javax.jms.TopicConnection createTopicConnection()
                                                throws javax.jms.JMSException
Creates a topic connection with default user identity.

Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Returns:
a newly created queue connection.
Throws:
javax.jms.JMSException - if JMS Provider fails to create Topic Connection due to some internal error. required resources for a Topic Connection.
javax.jms.JMSSecurityException - if client authentication fails due to invalid user name or password.

createTopicConnection

public javax.jms.TopicConnection createTopicConnection(java.lang.String userName,
                                                       java.lang.String password)
                                                throws javax.jms.JMSException
Creates a topic connection with specified user identity.

Specified by:
createTopicConnection in interface javax.jms.TopicConnectionFactory
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created topic connection.
Throws:
javax.jms.JMSException - if JMS Provider fails to create Topic Connection due to some internal error.
javax.jms.JMSSecurityException - if client authentication fails due to invalid user name or password.

(c) Copyright IBM Corp. 2005. All Rights Reserved.