JMS 基础概念(二)
本节讲述:The JMS API Programming Model
上图为JMS Programming Model 的框架图
一、首先阐述上一篇文档的遗留问题:Administered Objects.
Administered Objects
Two parts of a JMS application--destinations and connection factories--are best maintained administratively rather than programmatically . 【Administered Objects 是通过文件配置的,包含两部分destinations 和 connection factories】
1.1 Connection Factories
A connection factory is the object a client uses to create a connection to a provider. A connection factory encapsulates a set of connection configuration parameters that has been defined by an administrator. Each connection factory is an instance of the ConnectionFactory, QueueConnectionFactory, or TopicConnectionFactory interface.
如下图:
At the beginning of a JMS client program, you usually perform a JNDI lookup of a connection factory, then cast and assign it to a ConnectionFactory object.

至于整个的流程和例子,以及JSM的优缺点会在后续的文章中给出.