A ConnectionFactory allows an application to create a Connection.
The application obtains the ConnectionFactory from an InitialContext. The InitialContext is itself obtained from an InitialContextFactory.
The Client provides a single implementation of the InitialContextFactory in class
org.apache.qpid.jndi.PropertiesFileInitialContextFactory
. This
implementation is backed by a Properties object which can of course be loaded from an external properties file,
or created programatically.
The examples in the previous chapter illustrated the Java code required to create the InitialContext and an example properties file.
The Client also provides an alternate connection factory implementation providing a connection pool. This can be useful when utilsing frameworks such as Spring. Appendix D, PooledConnectionFactory.
Note that the Apache Qpid Broker-J does not present a JNDI interface to the application.
Apache Qpid, Messaging built on AMQP; Copyright © 2015 The Apache Software Foundation; Licensed under the Apache License, Version 2.0; Apache Qpid, Qpid, Qpid Proton, Proton, Apache, the Apache feather logo, and the Apache Qpid project logo are trademarks of The Apache Software Foundation; All other marks mentioned may be trademarks or registered trademarks of their respective owners