Oracle® Streams Advanced Queuing Java API Reference
Release 1 (10.1)

B12023-01

oracle.jms
Class AQjmsConnectionFactory

java.lang.Object
  |
  +--oracle.jms.AQjmsConnectionFactory
All Implemented Interfaces:
ConnectionFactory, javax.naming.spi.ObjectFactory, javax.naming.Referenceable, java.io.Serializable
Direct Known Subclasses:
AQjmsQueueConnectionFactory, AQjmsTopicConnectionFactory

public class AQjmsConnectionFactory
extends java.lang.Object
implements javax.naming.spi.ObjectFactory, ConnectionFactory, javax.naming.Referenceable, java.io.Serializable

Oracle class implementing javax.jms.ConnectionFactory, javax.naming.spi.ObjectFactory

See Also:
Serialized Form

Method Summary
 javax.jms.Connection createConnection()
          Creates a connection with the default user identity.
 javax.jms.Connection createConnection(java.lang.String userName, java.lang.String password)
          Creates a connection with the specified user identity.
 java.lang.Object getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)
           
 javax.naming.Reference getReference()
           

 

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

 

Method Detail

getObjectInstance

public java.lang.Object getObjectInstance(java.lang.Object obj,
                                          javax.naming.Name name,
                                          javax.naming.Context nameCtx,
                                          java.util.Hashtable environment)
                                   throws JMSException
Specified by:
getObjectInstance in interface javax.naming.spi.ObjectFactory
JMSException

createConnection

public javax.jms.Connection createConnection()
                                      throws JMSException
Creates a connection with the default user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.
Specified by:
createConnection in interface ConnectionFactory
Returns:
a newly created connection
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

createConnection

public javax.jms.Connection createConnection(java.lang.String userName,
                                             java.lang.String password)
                                      throws JMSException
Creates a connection with the specified user identity. The connection is created in stopped mode. No messages will be delivered until the Connection.start method is explicitly called.
Specified by:
createConnection in interface ConnectionFactory
Parameters:
userName - the caller's user name
password - the caller's password
Returns:
a newly created connection
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

getReference

public javax.naming.Reference getReference()
Specified by:
getReference in interface javax.naming.Referenceable

Oracle® Streams Advanced Queuing Java API Reference
Release 1 (10.1)

B12023-01

Copyright © 2003, Oracle. All Rights Reserved.