Name
ConnectionFactory
Synopsis
Messaging clients use a ConnectionFactory
to get Connections
to the
message provider. A ConnectionFactory
is usually acquired through a
JNDI lookup, and then creates a Connection
with the factory. The
ConnectionFactory
interface doesn’t define methods for creating
Connections
; they are provided by extensions to this interface (e.g.,
QueueConnectionFactory
, TopicConnectionFactory
).
public interface ConnectionFactory {
}
Implementations
QueueConnectionFactory
, TopicConnectionFactory
Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.