Administered Objects: JMS Connection Factories

2. Ordinarily, an administrator configures administered objects in a Java Naming and Directory Interface (JNDI) API namespace, and JMS clients then look them up, using the JNDI API. J2EE applications always use the JNDI API.
Connection Factories:
1. A connection factory is the object a client uses to create a connection with a provider. A pair of connection factories come preconfigured with the J2EE SDK and are accessible as soon as you start the service.
2. Each connection factory is an instance of either the QueueConnectionFactory or the TopicConnectionFactory interface.
3. We can use the default connection factory objects, to create connections.
4. At the beginning of a JMS client program, perform a JNDI API lookup of the connection factory.
0 comments:
Post a Comment