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,java.io.Serializable,javax.naming.Referenceable
- Direct Known Subclasses:
XAQueueConnectionFactory,XATopicConnectionFactory
public class XAConnectionFactory extends ConnectionFactory implements jakarta.jms.XAConnectionFactory
AnXAConnectionFactoryis used to create XAConnections with the Sun MQ Java Message Service (JMS) provider.- See Also:
jakarta.jms.XAConnectionFactory, Serialized Form
-
-
Field Summary
-
Fields inherited from class com.sun.messaging.AdministeredObject
AO_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 Summary
Constructors Constructor Description XAConnectionFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.jms.XAConnectioncreateXAConnection()Create an XA connection with default user identity.jakarta.jms.XAConnectioncreateXAConnection(java.lang.String username, java.lang.String password)Create an XA connection with specified user identity.jakarta.jms.XAJMSContextcreateXAContext()jakarta.jms.XAJMSContextcreateXAContext(java.lang.String userName, java.lang.String password)jakarta.jms.XAQueueConnectioncreateXAQueueConnection()Create an XA queue connection with default user identity.jakarta.jms.XAQueueConnectioncreateXAQueueConnection(java.lang.String username, java.lang.String password)Create an XA queue connection with specific user identity.jakarta.jms.XATopicConnectioncreateXATopicConnection()Create an XA topic connection with default user identity.jakarta.jms.XATopicConnectioncreateXATopicConnection(java.lang.String username, java.lang.String password)Create an XA topic connection with specified user identity.protected static com.sun.messaging.jmq.jmsclient.ContainerTypegetContainerType()-
Methods inherited from class com.sun.messaging.ConnectionFactory
createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, getReference
-
Methods inherited from class com.sun.messaging.BasicConnectionFactory
createConnection, createConnection, createContext, createContext, createContext, createContext, getConnectionType, setConnectionType, setDefaultConfiguration, toString
-
Methods inherited from class com.sun.messaging.AdministeredObject
dump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnly, setStoredVersion
-
-
-
-
Method Detail
-
createXAConnection
public 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 interfacejakarta.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.
-
createXAConnection
public jakarta.jms.XAConnection createXAConnection(java.lang.String username, java.lang.String password) throws jakarta.jms.JMSExceptionCreate 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 interfacejakarta.jms.XAConnectionFactory- Parameters:
username- the caller's user namepassword- 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.
-
createXAQueueConnection
public 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.
-
createXAQueueConnection
public jakarta.jms.XAQueueConnection createXAQueueConnection(java.lang.String username, java.lang.String password) throws jakarta.jms.JMSExceptionCreate 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 namepassword- 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.
-
createXATopicConnection
public 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.
-
createXATopicConnection
public jakarta.jms.XATopicConnection createXATopicConnection(java.lang.String username, java.lang.String password) throws jakarta.jms.JMSExceptionCreate 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 namepassword- 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.
-
createXAContext
public jakarta.jms.XAJMSContext createXAContext()
- Specified by:
createXAContextin interfacejakarta.jms.XAConnectionFactory
-
createXAContext
public jakarta.jms.XAJMSContext createXAContext(java.lang.String userName, java.lang.String password)- Specified by:
createXAContextin interfacejakarta.jms.XAConnectionFactory
-
getContainerType
protected static com.sun.messaging.jmq.jmsclient.ContainerType getContainerType()
-
-