Class MQQueueConnectionFactory
java.lang.Object
com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl
com.ibm.msg.client.jms.admin.JmsJndiConnectionFactoryImpl
com.ibm.mq.jms.MQConnectionFactory
com.ibm.mq.jms.MQQueueConnectionFactory
- All Implemented Interfaces:
JmsConnectionFactory, JmsPropertyContext, JmsQueueConnectionFactory, JmsReadablePropertyContext, com.ibm.msg.client.provider.ProviderPropertyContextCallback, Serializable, Map<String,Object>, javax.jms.ConnectionFactory, javax.jms.QueueConnectionFactory, Referenceable
- Direct Known Subclasses:
MQXAQueueConnectionFactory
public class MQQueueConnectionFactory
extends MQConnectionFactory
implements javax.jms.QueueConnectionFactory, Referenceable, Serializable, JmsQueueConnectionFactory
A client uses an MQQueueConnectionFactory to create QueueConnections with a JMS point-to-point
provider.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class MQConnectionFactory
MQConnectionFactory.ConnectionFactoryProperty -
Field Summary
Fields inherited from class MQConnectionFactory
MQ_JMSADMIN_KEYFILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.jms.QueueConnectionCreates a queue connection with default user identity.javax.jms.QueueConnectioncreateQueueConnection(String userid, String password) Creates a queue connection with specified user identity.Methods inherited from class MQConnectionFactory
createConnection, createConnection, getAppName, getAppType, getAsyncExceptions, getBalancingApplicationType, getBalancingOptions, getBalancingTimeout, getBrokerCCSubQueue, getBrokerControlQueue, getBrokerPubQueue, getBrokerQueueManager, getBrokerSubQueue, getBrokerVersion, getCCDTHttpsCertValidationPolicy, getCCDTSSLSocketFactory, getCCDTURL, getCCSID, getCertificateValPolicy, getChannel, getCleanupInterval, getCleanupLevel, getClientId, getClientID, getClientReconnectOptions, getClientReconnectTimeout, getConnectionNameList, getConnTag, getDescription, getDirectAuth, getFailIfQuiesce, getFileFromURL, getHdrCompList, getHostName, getLocalAddress, getMapNameStyle, getMaxBufferSize, getMessageRetention, getMessageSelection, getMQConnectionOptions, getMsgBatchSize, getMsgCompList, getMulticast, getPollingInterval, getPort, getProviderVersion, getProxyHostName, getProxyPort, getPubAckInterval, getQueueManager, getReceiveExit, getReceiveExitInit, getReference, getRescanInterval, getSecurityExit, getSecurityExitInit, getSendCheckCount, getSendExit, getSendExitInit, getShareConvAllowed, getSparseSubscriptions, getSSLCertStores, getSSLCertStoresAsString, getSSLCipherSuite, getSSLFipsRequired, getSSLPeerName, getSSLResetCount, getSSLSocketFactory, getStatusRefreshInterval, getSubscriptionStore, getSyncpointAllGets, getTargetClientMatching, getTemporaryModel, getTempQPrefix, getTempTopicPrefix, getTokenClientId, getTokenClientSecret, getTokenEndpoint, getTokenHttpsCertValidationPolicy, getTokenSSLSocketFactory, getTransportType, getUseConnectionPooling, getUserAuthenticationMQCSP, getVersion, getWildcardFormat, setAppName, setAsyncExceptions, setBalancingApplicationType, setBalancingOptions, setBalancingTimeout, setBrokerCCSubQueue, setBrokerControlQueue, setBrokerPubQueue, setBrokerQueueManager, setBrokerSubQueue, setBrokerVersion, setCCDTHttpsCertValidationPolicy, setCCDTSSLSocketFactory, setCCDTURL, setCCSID, setCertificateValPolicy, setChannel, setCleanupInterval, setCleanupLevel, setClientId, setClientID, setClientReconnectOptions, setClientReconnectTimeout, setConnectionNameList, setConnTag, setDescription, setDirectAuth, setFailIfQuiesce, setHdrCompList, setHostName, setLocalAddress, setMapNameStyle, setMaxBufferSize, setMessageRetention, setMessageSelection, setMQConnectionOptions, setMsgBatchSize, setMsgCompList, setMulticast, setPollingInterval, setPort, setProviderVersion, setProxyHostName, setProxyPort, setPubAckInterval, setQueueManager, setReceiveExit, setReceiveExitInit, setRescanInterval, setSecurityExit, setSecurityExitInit, setSendCheckCount, setSendExit, setSendExitInit, setShareConvAllowed, setSparseSubscriptions, setSSLCertStores, setSSLCertStores, setSSLCipherSuite, setSSLFipsRequired, setSSLPeerName, setSSLResetCount, setSSLSocketFactory, setStatusRefreshInterval, setSubscriptionStore, setSyncpointAllGets, setTargetClientMatching, setTemporaryModel, setTempQPrefix, setTempTopicPrefix, setTokenClientId, setTokenClientSecret, setTokenEndpoint, setTokenHttpsCertValidationPolicy, setTokenSSLSocketFactory, setTransportType, setUseConnectionPooling, setUserAuthenticationMQCSP, setWildcardFormatMethods inherited from class com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl
createContext, createContext, createContext, createContext, equals, hashCodeMethods inherited from class com.ibm.msg.client.jms.internal.JmsPropertyContextImpl
clear, containsKey, containsValue, entrySet, get, getObjectProperty, isEmpty, keySet, propertyExists, put, putAll, remove, setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setProviderPropertyContext, setShortProperty, setStringProperty, size, valuesMethods inherited from class com.ibm.msg.client.jms.internal.JmsReadablePropertyContextImpl
dump, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getPropertyNames, getShortProperty, getStringProperty, propertyAppExists, toStringMethods inherited from interface javax.jms.ConnectionFactory
createConnection, createConnection, createContext, createContext, createContext, createContextMethods inherited from interface JmsPropertyContext
setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toJsonMethods inherited from interface JmsReadablePropertyContext
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, stringifyMeMethods inherited from interface Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from interface Referenceable
getReference
-
Constructor Details
-
MQQueueConnectionFactory
public MQQueueConnectionFactory()This is the default constructor.
-
-
Method Details
-
createQueueConnection
public javax.jms.QueueConnection createQueueConnection() throws javax.jms.JMSExceptionCreates a queue connection with default user identity.- Specified by:
createQueueConnectionin interfacejavax.jms.QueueConnectionFactory- Returns:
- a newly created queue connection.
- Throws:
javax.jms.JMSException- if JMS Provider fails to create Queue Connection due to some internal errorjavax.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
-
createQueueConnection
public javax.jms.QueueConnection createQueueConnection(String userid, String password) throws javax.jms.JMSException Creates a queue connection with specified user identity. If a null or empty userid is provided, the password parameter will be interpreted as an authentication token to be provided to the queue manager in place of userid and password.- Specified by:
createQueueConnectionin interfacejavax.jms.QueueConnectionFactory- Parameters:
userid- the user name of the caller.password- the password of the caller.- Returns:
- a newly created queue connection.
- Throws:
javax.jms.JMSException- if JMS Provider fails to create an MQQueueConnection due to an internal error.javax.jms.JMSSecurityException- if client authentication fails due to an invalid user name or password.
-