OpenJMS,官方地址是http://openjms./。
我一般学习一个开源项目,特别是国外的,我喜欢从官方网站开始学习。(原因大家都知道)
我们先看下,OpenJMS的介绍。
Features
- Point-to-Point and publish-subscribe messaging models
- Guaranteed delivery of messages
- Synchronous and asynchronous message delivery
- Persistence using JDBC
- Local transactions
- Message filtering using SQL92-like selectors
- Authentication
- Administration GUI
- XML-based configuration files
- In-memory and database garbage collection
- Automatic client disconnection detection
- Applet support
- Integrates with Servlet containers such as Jakarta Tomcat
- Support for TCP, RMI, HTTP and SSL protocol stacks
- Support for large numbers of destinations and subscribers
| 支持点对点、发布订阅消息模型
| 可靠的消息传输
| 支持同步、异步消息传输
| jdbc持久存储
| 本地事物
| 基于SQL92的消息过滤
| 认证
| 图形管理界面
| 基于xml的配置文件、
| 内存和数据库垃圾回收
| 客户自动断线检查
| 支持Applet
| 可以与servlet容器结合,例如Jakarta Tomcat
| 支持TCP, RMI, HTTP and SSL 传输协议
| 支持大数据量的目标和订阅者
下面就进入最基本的搭建环境、写简单示例的步骤
Getting Started with OpenJMS
Overview of the Getting Started Documentation
Document |
Description |
Downloads |
Before you can start using OpenJMS, you need to download the OpenJMS distribution to your system. This document provides links to the various distributions available. |
Installation |
After you have downloaded a distribution, you need to install this on your system before you can start using OpenJMS. This document provides step-by-step instructions on the installation process. |
Running OpenJMS |
Once you've installed OpenJMS, you need to start the OpenJMS server. This document provides the commands to run OpenJMS. |
Using OpenJMS |
This document provides code samples on using OpenJMS. |
Examples |
OpenJMS is distributed with a number of example programs that demonstrate writing simple applications using JMS. This document describes how to build and run the examples. |
Started文档分了五个:
下载,安装,运行OpenJMS,使用OpenJMS,自带的示例
下载
点击下载链接,进到下载页面。
我下载了window下的openjms-0.7.7-beta-1.zip和openjms-0.7.7-beta-1-src.zip源码两个包
安装
点击安装链接,到安装说明页面。
如果是其他平台大家可以按照它的说明来。我直接使用解压缩工具,直接解压了上面两个包。
环境要求
1.安装了JDK。如果只是运行的话,JRE就行了。配置环境变量JAVA_HOME,怎么配就不说了。
2.配置OPENJMS_HOME环境变量,指向openjms解压后能看到bin目录的文件夹路径。
其实我是没有配置OPENJMS_HOME的,不影响openjms的使用。原因我下面会讲到。
目录说明
bin
The bin directory contains Unix shell scripts and Windows batch files to:
- start, stop, and administer the OpenJMS server
- create the OpenJMS database
bin目录包含了Unix shell脚本和windows batch脚本:
开始、停止和管理 OPenJMS服务器
创建OpenJMS数据库
docs
The docs directory contains
the full set of OpenJMS documentation.
docs目录包含了OpenJMS的较全的文档
lib
The lib directory contains:
- JARs required to run the OpenJMS server
- JARs required by client programs to use OpenJMS
lib目录包括:
运行OpenJMS服务所需的jar包
运行openJMS客户端程序所需的jar包
config
The config directory contains:
- the default OpenJMS server configuration file,
openjms.xml - SQL scripts to create the OpenJMS database
Config目录包含:
OpenJMS服务默认的配置文件,openjms.xml
创建OpenJMS数据库的SQL脚本
|