Sunday, May 15, 2011

Administered Objects: JMS Connection Factories

1. JMS clients access the destinations and connection factory objects through interfaces that are portable, so a client application can run with little or no change on more than one implementation of the JMS API.

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:

Popular Posts

  © Blogger templates The Professional Template by Ourblogtemplates.com 2008

Back to TOP