Danh mục

Java Message Service

Số trang: 0      Loại file: pdf      Dung lượng: 1.07 MB      Lượt xem: 12      Lượt tải: 0    
Jamona

Phí tải xuống: miễn phí Tải xuống file đầy đủ (0 trang) 0
Xem trước 10 trang đầu tiên của tài liệu này:

Thông tin tài liệu:

Computers and people can communicate by using messaging systems to exchangemessages over electronic networks. The most ubiquitous messaging system today is email,which facilitates communication among people. While email is an important human-tohumanmessaging system, this book is not about email. Instead, this book is concernedwith messaging systems that allow different software applications to communicate witheach other. These application-to-application messaging systems, when used in businesssystems, are generically...
Nội dung trích xuất từ tài liệu:
Java Message Service Java Message Service Richard Monson-Haefel David A. Chappell Publisher: OReilly First Edition January 2001 ISBN: 0-596-00068-5, 238 pagesThis book is a thorough introduction to Java Message Service (JMS) from SunMicrosystems. It shows how to build applications using the point-to-point and publish-and-subscribe models; use features like transactions and durable subscriptions to makeapplications reliable; and use messaging within Enterprise JavaBeans. It also introduces anew EJB type, the MessageDrivenBean, that is part of EJB 2.0, and discusses integrationof messaging into J2EE. Team[oR]Table of ContentsPreface ..............................................................................................................................1 What Is the Java Message Service?.................................................................................1 Who Should Read This Book?........................................................................................1 Organization...................................................................................................................2 Software and Versions ....................................................................................................3 Conventions ...................................................................................................................4 Comments and Questions ...............................................................................................4 Acknowledgments ..........................................................................................................5Chapter 1. Understanding the Messaging Paradigm ......................................................6 1.1 Enterprise Messaging................................................................................................7 1.2 The Java Message Service (JMS)..............................................................................9 1.3 Application Scenarios .............................................................................................11 1.4 RPC Versus Asynchronous Messaging ...................................................................15Chapter 2. Developing a Simple Example .....................................................................19 2.1 The Chat Application..............................................................................................19Chapter 3. Anatomy of a JMS Message.........................................................................33 3.1 Headers...................................................................................................................34 3.2 Properties................................................................................................................38 3.3 Message Selectors...................................................................................................40 3.4 Message Types .......................................................................................................42Chapter 4. Publish-and-Subscribe Messaging...............................................................53 4.1 Getting Started with the B2B Application ...............................................................53 4.2 Temporary Topics...................................................................................................60 4.3 Durable Subscriptions.............................................................................................61 4.4 Publishing the Message Persistently........................................................................63 4.5 JMSCorrelationID...................................................................................................64 4.6 Request and Reply ..................................................................................................65 4.7 Unsubscribing.........................................................................................................68Chapter 5. Point-to-Point Messaging.............................................................................69 5.1 Point-to-Point and Publish-and-Subscribe ...............................................................69 5.2 The QWholesaler and QRetailer..............................................................................71 5.3 Creating a Queue Dynamically ...............................................................................78 5.4 Load Balancing Using Multiple QueueSessions ......................................................79 5.5 Examining a Queue.................................................................................................80Chapter 6. Guaranteed Messaging, Transactions, Acknowledgments & Failures ......84 6.1 Guaranteed Messaging ............................................................................................84 6.2 Message Acknowledgments....................................................................................85 6.3 Message Groups and Acknowledgment...................................................................91 6.4 Transacted Messages ..............................................................................................95 6.5 Lost Connections .................................................................................................. 104 6.6 Dead Message Queues .......................................................................................... 106Chapter 7. Deployment Considerations....................................................................... 108 7.1 Performance, Scalability, and Reliability ...................... ...

Tài liệu được xem nhiều: