Skip navigation links

Oracle® Streams Advanced Queuing Java API Reference
11g Release 2 (11.2)

E10768-01


oracle.jms
Class AQjmsXAConnectionFactory

java.lang.Object
  extended by oracle.jms.AQjmsConnectionFactory
      extended by oracle.jms.AQjmsXAConnectionFactory

All Implemented Interfaces:
java.io.Serializable, ConnectionFactory, XAConnectionFactory, javax.naming.spi.ObjectFactory

public class AQjmsXAConnectionFactory
extends AQjmsConnectionFactory
implements XAConnectionFactory

Oracle class implementing javax.jms.XAConnectionFactory

See Also:
Serialized Form

Constructor Summary
AQjmsXAConnectionFactory()
          Constructs a XAConnectionFactory object.

 

Method Summary
 XAConnection createXAConnection()
          Creates a XAConnection with the default user identity.
 XAConnection createXAConnection(java.lang.String userName, java.lang.String password)
          Creates a XAConnection with the specified user identity.

 

Methods inherited from class oracle.jms.AQjmsConnectionFactory
createConnection, createConnection, getDataSource, getJdbcURL, getObjectInstance, getUsername, setDatasource, setJdbcURL, setPassword, setUsername

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

AQjmsXAConnectionFactory

public AQjmsXAConnectionFactory()
Constructs a XAConnectionFactory object. Before using the new factory object to create connections, initializes it by setting its properties.

Method Detail

createXAConnection

public XAConnection createXAConnection()
                                throws JMSException
Creates a XAConnection with the default user identity. The XAConnection is created in stopped mode. No messages will be delivered until the XAConnection.start method is explicitly called.
Specified by:
createXAConnection in interface XAConnectionFactory
Returns:
a newly created XAConnection
Throws:
JMSException - if the JMS provider fails to create the connection due to some internal error.
JMSSecurityException - if client authentication fails due to an invalid user name or password.
Since:
1.1

createXAConnection

public XAConnection createXAConnection(java.lang.String userName,
                                       java.lang.String password)
                                throws JMSException
Creates a XAConnection with the specified user identity. The XAConnection is created in stopped mode. No messages will be delivered until the XAConnection.start method is explicitly called.
Specified by:
createXAConnection in interface XAConnectionFactory
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created XAConnection
Throws:
JMSException - if the JMS provider fails to create the XAConnection due to some internal error.
JMSSecurityException - if client authentication fails due to an invalid user name or password.
Since:
1.1

Skip navigation links

Oracle® Streams Advanced Queuing Java API Reference
11g Release 2 (11.2)

E10768-01


Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.