|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
oracle.jms.AQjmsConnectionFactory
This is an Oracle class which implements javax.jms.ConnectionFactory and javax.naming.spi.ObjectFactory.
| Method Summary | |
Connection |
createConnection()Creates a connection with the default user identity. |
Connection |
createConnection(java.lang.String userName, java.lang.String password)Creates a connection using the specified user identity. |
java.lang.Object |
getObjectInstance(java.lang.Object obj, javax.naming.Name name, javax.naming.Context nameCtx, java.util.Hashtable environment)Creates a connection factory. |
javax.naming.Reference |
getReference()Creates a JMS connection factory reference suitable for passing to getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public java.lang.Object getObjectInstance(java.lang.Object obj,
javax.naming.Name name,
javax.naming.Context nameCtx,
java.util.Hashtable environment)
throws JMSException
name and nameCtx.getObjectInstance in interface javax.naming.spi.ObjectFactoryobj - a javax.naming.Reference indicating the connection factory classname - the location containing the database connection attributesnameCtx - a javax.naming.directory.DirContext containing the above locationenvironment - (not used - parameter required by javax.naming.spi.ObjectFactory interface)null if obj is invalid or looking up the provided name in the provided nameCtx returns a null resultJMSException - if a connection factory is not created for any reason other than those listed above (which result in a null return value)
public Connection createConnection()
throws JMSException
Connection.start method is explicitly called.createConnection in interface ConnectionFactoryJMSException - if the connection is not created due to some error.JMSSecurityException - if client authentication fails due to an invalid user name or password.
public Connection createConnection(java.lang.String userName,
java.lang.String password)
throws JMSException
Connection.start method is explicitly called.createConnection in interface ConnectionFactoryuserName - the caller's user namepassword - the caller's passwordJMSException - if the connection is not created due to some error.JMSSecurityException - if client authentication fails due to an invalid user name or password.public javax.naming.Reference getReference()
getObjectInstance(java.lang.Object, javax.naming.Name, javax.naming.Context, java.util.Hashtable).getReference in interface javax.naming.Referenceable
|
Oracle® Streams Advanced Queuing Java API Reference 10g Release 2 (10.2) B14291-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||