public class XAConnectionFactory extends ConnectionFactory implements XAConnectionFactory
XAConnectionFactory is used to create XAConnections with
the Sun MQ Java Message Service (JMS) provider.javax.jms.XAConnectionFactory,
Serialized FormAO_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, storedVersion, VERSION| Constructor and Description |
|---|
XAConnectionFactory() |
| Modifier and Type | Method and Description |
|---|---|
XAConnection |
createXAConnection()
Create an XA connection with default user identity.
|
XAConnection |
createXAConnection(String username,
String password)
Create an XA connection with specified user identity.
|
XAJMSContext |
createXAContext()
Creates a
XAJMSContext with the default user identity
A connection and session are created for use by the new XAJMSContext. |
XAJMSContext |
createXAContext(String userName,
String password)
Creates a JMSContext with the specified user identity
A connection and session are created for use by the new
XAJMSContext. |
XAQueueConnection |
createXAQueueConnection()
Create an XA queue connection with default user identity.
|
XAQueueConnection |
createXAQueueConnection(String username,
String password)
Create an XA queue connection with specific user identity.
|
XATopicConnection |
createXATopicConnection()
Create an XA topic connection with default user identity.
|
XATopicConnection |
createXATopicConnection(String username,
String password)
Create an XA topic connection with specified user identity.
|
protected static com.sun.messaging.jmq.jmsclient.ContainerType |
getContainerType() |
createQueueConnection, createQueueConnection, createTopicConnection, createTopicConnection, getReferencecreateConnection, createConnection, createContext, createContext, createContext, createContext, getConnectionType, setConnectionType, setDefaultConfiguration, toStringdump, enumeratePropertyNames, getConfiguration, getCurrentConfiguration, getLabelForGroup, getPropertiesForGroup, getProperty, getPropertyForListValue, getPropertyGroups, getPropertyLabel, getPropertyListOtherName, getPropertyListValues, getPropertyType, getPropertyValueForListValue, getStoredVersion, getVERSION, isPropertyDeprecated, isPropertyHidden, isReadOnly, isStoredVersionCompatible, setProperty, setReadOnlypublic XAConnection createXAConnection() throws JMSException
Connection.start method
is explicitly called.createXAConnection in interface XAConnectionFactoryJMSException - if JMS Provider fails to create XA Connection
due to some internal error.JMSSecurityException - if client authentication fails due to
invalid user name or password.public XAConnection createXAConnection(String username, String password) throws JMSException
Connection.start method
is explicitly called.createXAConnection in interface XAConnectionFactoryusername - the caller's user namepassword - the caller's passwordJMSException - if JMS Provider fails to create XA connection
due to some internal error.JMSSecurityException - if client authentication fails due to
invalid user name or password.public XAQueueConnection createXAQueueConnection() throws JMSException
Connection.start method
is explicitly called.JMSException - if JMS Provider fails to create XA queue Connection
due to some internal error.JMSSecurityException - if client authentication fails due to
invalid user name or password.public XAQueueConnection createXAQueueConnection(String username, String password) throws JMSException
Connection.start method
is explicitly called.username - the caller's user namepassword - the caller's passwordJMSException - if JMS Provider fails to create XA queue Connection
due to some internal error.JMSSecurityException - if client authentication fails due to
invalid user name or password.public XATopicConnection createXATopicConnection() throws JMSException
Connection.start method
is explicitly called.JMSException - if JMS Provider fails to create XA topic Connection
due to some internal error.JMSSecurityException - if client authentication fails due to
invalid user name or password.public XATopicConnection createXATopicConnection(String username, String password) throws JMSException
Connection.start method
is explicitly called.username - the caller's user namepassword - the caller's passwordJMSException - if JMS Provider fails to create XA topi connection
due to some internal error.JMSSecurityException - if client authentication fails due to
invalid user name or password.public XAJMSContext createXAContext()
XAConnectionFactoryXAJMSContext with the default user identity
A connection and session are created for use by the new XAJMSContext.
The connection is created in stopped mode but will be automatically started
when a JMSConsumer is created.
createXAContext in interface XAConnectionFactoryXAJMSContextpublic XAJMSContext createXAContext(String userName, String password)
XAConnectionFactory
A connection and session are created for use by the new XAJMSContext.
The connection is created in stopped mode but will be automatically started
when a JMSConsumer is created.
createXAContext in interface XAConnectionFactoryuserName - the caller's user namepassword - the caller's passwordprotected static com.sun.messaging.jmq.jmsclient.ContainerType getContainerType()
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.