Package com.sun.messaging
Class XAConnectionFactory
java.lang.Object
com.sun.messaging.AdministeredObject
com.sun.messaging.BasicConnectionFactory
com.sun.messaging.ConnectionFactory
com.sun.messaging.XAConnectionFactory
- All Implemented Interfaces:
- jakarta.jms.ConnectionFactory,- jakarta.jms.XAConnectionFactory,- Serializable,- Referenceable
- Direct Known Subclasses:
- XAQueueConnectionFactory,- XATopicConnectionFactory
public class XAConnectionFactory
extends ConnectionFactory
implements jakarta.jms.XAConnectionFactory
An 
XAConnectionFactory is used to create XAConnections with the OpenMQ Java Message Service (JMS)
 provider.- See Also:
- 
Field SummaryFields inherited from class com.sun.messaging.AdministeredObjectAO_PROPERTY_TYPE_BOOLEAN, AO_PROPERTY_TYPE_INTEGER, AO_PROPERTY_TYPE_LIST, AO_PROPERTY_TYPE_LONG, AO_PROPERTY_TYPE_PROPERTYOWNER, AO_PROPERTY_TYPE_STRING, cachedConfigurationMap, configuration, configurationLabels, configurationTypes, cr, VERSION
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionjakarta.jms.XAConnectionCreate an XA connection with default user identity.jakarta.jms.XAConnectioncreateXAConnection(String username, String password) Create an XA connection with specified user identity.jakarta.jms.XAJMSContextjakarta.jms.XAJMSContextcreateXAContext(String userName, String password) jakarta.jms.XAQueueConnectionCreate an XA queue connection with default user identity.jakarta.jms.XAQueueConnectioncreateXAQueueConnection(String username, String password) Create an XA queue connection with specific user identity.jakarta.jms.XATopicConnectionCreate an XA topic connection with default user identity.jakarta.jms.XATopicConnectioncreateXATopicConnection(String username, String password) Create an XA topic connection with specified user identity.protected static com.sun.messaging.jmq.jmsclient.ContainerTypeMethods inherited from class com.sun.messaging.ConnectionFactorycreateQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, getReferenceMethods inherited from class com.sun.messaging.BasicConnectionFactorycreateConnection, createConnection, createContext, createContext, createContext, createContext, getConnectionType, setConnectionType, setDefaultConfiguration, toStringMethods inherited from class com.sun.messaging.AdministeredObjectdump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnly, setStoredVersion
- 
Constructor Details- 
XAConnectionFactorypublic XAConnectionFactory()
 
- 
- 
Method Details- 
createXAConnectionpublic jakarta.jms.XAConnection createXAConnection() throws jakarta.jms.JMSExceptionCreate an XA connection with default user identity. The connection is created in stopped mode. No messages will be delivered untilConnection.startmethod is explicitly called.- Specified by:
- createXAConnectionin interface- jakarta.jms.XAConnectionFactory
- Returns:
- a newly created XA connection.
- Throws:
- jakarta.jms.JMSException- if JMS Provider fails to create XA Connection due to some internal error.
- jakarta.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
 
- 
createXAConnectionpublic jakarta.jms.XAConnection createXAConnection(String username, String password) throws jakarta.jms.JMSException Create an XA connection with specified user identity. The connection is created in stopped mode. No messages will be delivered untilConnection.startmethod is explicitly called.- Specified by:
- createXAConnectionin interface- jakarta.jms.XAConnectionFactory
- Parameters:
- username- the caller's user name
- password- the caller's password
- Returns:
- a newly created XA connection.
- Throws:
- jakarta.jms.JMSException- if JMS Provider fails to create XA connection due to some internal error.
- jakarta.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
 
- 
createXAQueueConnectionpublic jakarta.jms.XAQueueConnection createXAQueueConnection() throws jakarta.jms.JMSExceptionCreate an XA queue connection with default user identity. The connection is created in stopped mode. No messages will be delivered untilConnection.startmethod is explicitly called.- Returns:
- a newly created XA queue connection.
- Throws:
- jakarta.jms.JMSException- if JMS Provider fails to create XA queue Connection due to some internal error.
- jakarta.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
 
- 
createXAQueueConnectionpublic jakarta.jms.XAQueueConnection createXAQueueConnection(String username, String password) throws jakarta.jms.JMSException Create an XA queue connection with specific user identity. The connection is created in stopped mode. No messages will be delivered untilConnection.startmethod is explicitly called.- Parameters:
- username- the caller's user name
- password- the caller's password
- Returns:
- a newly created XA queue connection.
- Throws:
- jakarta.jms.JMSException- if JMS Provider fails to create XA queue Connection due to some internal error.
- jakarta.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
 
- 
createXATopicConnectionpublic jakarta.jms.XATopicConnection createXATopicConnection() throws jakarta.jms.JMSExceptionCreate an XA topic connection with default user identity. The connection is created in stopped mode. No messages will be delivered untilConnection.startmethod is explicitly called.- Returns:
- a newly created XA topic connection.
- Throws:
- jakarta.jms.JMSException- if JMS Provider fails to create XA topic Connection due to some internal error.
- jakarta.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
 
- 
createXATopicConnectionpublic jakarta.jms.XATopicConnection createXATopicConnection(String username, String password) throws jakarta.jms.JMSException Create an XA topic connection with specified user identity. The connection is created in stopped mode. No messages will be delivered untilConnection.startmethod is explicitly called.- Parameters:
- username- the caller's user name
- password- the caller's password
- Returns:
- a newly created XA topic connection.
- Throws:
- jakarta.jms.JMSException- if JMS Provider fails to create XA topi connection due to some internal error.
- jakarta.jms.JMSSecurityException- if client authentication fails due to invalid user name or password.
 
- 
createXAContextpublic jakarta.jms.XAJMSContext createXAContext()- Specified by:
- createXAContextin interface- jakarta.jms.XAConnectionFactory
 
- 
createXAContext- Specified by:
- createXAContextin interface- jakarta.jms.XAConnectionFactory
 
- 
getContainerTypeprotected static com.sun.messaging.jmq.jmsclient.ContainerType getContainerType()
 
-