This chapter presents the Java design techniques used to create the example application. We focus on Sun's Java Message Service (JMS) in the role it plays in enterprise messaging applications. We discuss supporting APIs, such as Sun's Java Naming and Directory Interface. Also, we will introduce WebSphere's JMS Listener, which is a component of extended messaging support in WebSphere Enterprise Services. The chapter concludes by extracting an application case from the example application, and providing a detailed description of the application design.
This document is a Chinese-language chapter on application design for a sample self-service application built with WebSphere Application Server 4.0. It discusses Java design techniques and introduces JMS concepts for enterprise messaging.
The text covers JMS message models, message components and types, destination types, and the role of JNDI in portable messaging applications. It also includes code-oriented examples for sending and receiving messages. This manual is written in Chinese.
JMS is Sun Microsystems' Java Message Service API for interaction between Java applications and enterprise messaging middleware such as MQSeries.
It describes point-to-point and publish/subscribe messaging models.
No, JNDI is not a requirement for JMS; it helps improve portability of messaging applications.
A JMS message consists of a header, properties, and a body.