Package com.ibm.mq.jakarta.jms
Class MQQueueConnectionFactory
java.lang.Object
com.ibm.msg.client.jakarta.jms.internal.JmsReadablePropertyContextImpl
com.ibm.msg.client.jakarta.jms.internal.JmsPropertyContextImpl
com.ibm.msg.client.jakarta.jms.admin.JmsConnectionFactoryImpl
com.ibm.msg.client.jakarta.jms.admin.JmsJndiConnectionFactoryImpl
com.ibm.mq.jakarta.jms.MQConnectionFactory
com.ibm.mq.jakarta.jms.MQQueueConnectionFactory
- All Implemented Interfaces:
JmsConnectionFactory,JmsPropertyContext,JmsQueueConnectionFactory,JmsReadablePropertyContext,com.ibm.msg.client.jakarta.provider.ProviderPropertyContextCallback,jakarta.jms.ConnectionFactory,jakarta.jms.QueueConnectionFactory,Serializable,Map<String,,Object> Referenceable
- Direct Known Subclasses:
MQXAQueueConnectionFactory
public class MQQueueConnectionFactory
extends MQConnectionFactory
implements jakarta.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 com.ibm.mq.jakarta.jms.MQConnectionFactory
MQConnectionFactory.ConnectionFactoryProperty -
Field Summary
Fields inherited from class com.ibm.mq.jakarta.jms.MQConnectionFactory
MQ_JMSADMIN_KEYFILE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.jms.QueueConnectionCreates a queue connection with default user identity.jakarta.jms.QueueConnectioncreateQueueConnection(String userid, String password) Creates a queue connection with specified user identity.Methods inherited from class com.ibm.mq.jakarta.jms.MQConnectionFactory
createConnection, createConnection, getAppName, getAppType, getAsyncExceptions, getBalancingApplicationType, getBalancingOptions, getBalancingTimeout, getBrokerCCSubQueue, getBrokerControlQueue, getBrokerPubQueue, getBrokerQueueManager, getBrokerSubQueue, getBrokerVersion, 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, getTransportType, getUseConnectionPooling, getUserAuthenticationMQCSP, getVersion, getWildcardFormat, setAppName, setAsyncExceptions, setBalancingApplicationType, setBalancingOptions, setBalancingTimeout, setBrokerCCSubQueue, setBrokerControlQueue, setBrokerPubQueue, setBrokerQueueManager, setBrokerSubQueue, setBrokerVersion, 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, setTransportType, setUseConnectionPooling, setUserAuthenticationMQCSP, setWildcardFormatMethods inherited from class com.ibm.msg.client.jakarta.jms.admin.JmsConnectionFactoryImpl
createContext, createContext, createContext, createContext, equals, hashCodeMethods inherited from class com.ibm.msg.client.jakarta.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.jakarta.jms.internal.JmsReadablePropertyContextImpl
dump, getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getPropertyNames, getShortProperty, getStringProperty, propertyAppExists, toStringMethods inherited from interface jakarta.jms.ConnectionFactory
createConnection, createConnection, createContext, createContext, createContext, createContextMethods inherited from interface com.ibm.msg.client.jakarta.jms.JmsPropertyContext
setBatchProperties, setBooleanProperty, setByteProperty, setBytesProperty, setCharProperty, setDoubleProperty, setFloatProperty, setIntProperty, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toJsonMethods inherited from interface com.ibm.msg.client.jakarta.jms.JmsReadablePropertyContext
getBooleanProperty, getByteProperty, getBytesProperty, getCharProperty, getDoubleProperty, getFloatProperty, getIntProperty, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, stringifyMeMethods inherited from interface java.util.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 javax.naming.Referenceable
getReference
-
Constructor Details
-
MQQueueConnectionFactory
public MQQueueConnectionFactory()This is the default constructor.
-
-
Method Details
-
createQueueConnection
public jakarta.jms.QueueConnection createQueueConnection() throws jakarta.jms.JMSExceptionCreates a queue connection with default user identity.- Specified by:
createQueueConnectionin interfacejakarta.jms.QueueConnectionFactory- Returns:
- a newly created queue connection.
- Throws:
jakarta.jms.JMSException- if JMS Provider fails to create Queue Connection due to some internal errorjakarta.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
-
createQueueConnection
public jakarta.jms.QueueConnection createQueueConnection(String userid, String password) throws jakarta.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 interfacejakarta.jms.QueueConnectionFactory- Parameters:
userid- the user name of the caller.password- the password of the caller.- Returns:
- a newly created queue connection.
- Throws:
jakarta.jms.JMSException- if JMS Provider fails to create an MQQueueConnection due to an internal error.jakarta.jms.JMSSecurityException- if client authentication fails due to an invalid user name or password.
-