Start reading Java Message Service on the free Kindle Reading App or on your Kindle in under a minute. Don't have a Kindle? Get your Kindle here.
Programming Books C Java PHP Python Learn more Browse Programming Books

Deliver to your Kindle or other device

Enter a promotion code
or gift card

Try it free

Sample the beginning of this book for free

Deliver to your Kindle or other device

Anybody can read Kindle books—even without a Kindle device—with the FREE Kindle app for smartphones, tablets and computers.
Sorry, this item is not available in
Image not available for
Image not available

To view this video download Flash Player


Java Message Service [Kindle Edition]

David A Chappell , Richard Monson-Haefel
3.8 out of 5 stars  See all reviews (39 customer reviews)

Digital List Price: $27.99 What's this?
Print List Price: $39.99
Kindle Price: $15.39
You Save: $24.60 (62%)


Amazon Price New from Used from
Kindle Edition $15.39  
Paperback $28.18  
Shop the New Digital Design Bookstore
Check out the Digital Design Bookstore, a new hub for photographers, art directors, illustrators, web developers, and other creative individuals to find highly rated and highly relevant career resources. Shop books on web development and graphic design, or check out blog posts by authors and thought-leaders in the design industry. Shop now

Book Description

This book is a thorough introduction to Java Message Service (JMS), the standard Java application program interface (API) from Sun Microsystems that supports the formal communication known as "messaging" between computers in a network. JMS provides a common interface to standard messaging protocols and to special messaging services in support of Java programs. The messages exchange crucial data between computers, rather than between users--information such as event notification and service requests. Messaging is often used to coordinate programs in dissimilar systems or written in different programming languages.Using the JMS interface, a programmer can invoke the messaging services of IBM's MQSeries, Progress Software's SonicMQ, and other popular messaging product vendors. In addition, JMS supports messages that contain serialized Java objects and messages that contain Extensible Markup Language (XML) pages.Messaging is a powerful new paradigm that makes it easier to uncouple different parts of an enterprise application. Messaging clients work by sending messages to a message server, which is responsible for delivering the messages to their destination. Message delivery is asynchronous, meaning that the client can continue working without waiting for the message to be delivered. The contents of the message can be anything from a simple text string to a serialized Java object or an XML document.Java Message Service shows how to build applications using the point-to-point and publish-and-subscribe models; how to use features like transactions and durable subscriptions to make an application reliable; and how to use messaging within Enterprise JavaBeans. It also introduces a new EJB type, the MessageDrivenBean, that is part of EJB 2.0, and discusses integration of messaging into J2EE.

Editorial Reviews Review

The Java Message Service (JMS) provides a way for the components of a distributed application to talk asynchronously, or for welding together legacy enterprise systems. Think of it as application-to-application e-mail. Unlike COM, JMS uses one or more JMS servers to handle the messages on a store-and-forward basis, so that the loss of one or more components doesn't bring the whole distributed application to a halt.

JMS consists of a set of messaging APIs that enable two types of messaging, publish-and-subscribe (one-to-many) and point-to-point (one-to-one). The highly lucid explanation of the ways in which these work makes the technical content a lot more approachable. In practice, however, Java Message Service is still a book for Java programmers who have some business programming experience. You need the background.

After a simple JMS demonstration in which you create a chat application using both messaging types, the authors dissect JMS message structures, explore both types in detail, and then move on to real-world considerations. These include reliability, security, deployment, and a rundown of various JMS server providers. The appendices list and describe the JMS API, and provide message reference material.

Considering the complexity and reach of the subject matter, Java Message Service does a great job of covering both theory and practice in a surprisingly efficient manner. It's easy to see why JMS has become so popular so quickly. Recommended. --Steve Patient,

Book Description

Creating Distributed Enterprise Applications

Product Details

  • File Size: 754 KB
  • Print Length: 240 pages
  • Simultaneous Device Usage: Unlimited
  • Publisher: O'Reilly Media; 1 edition (February 9, 2009)
  • Sold by: Amazon Digital Services, Inc.
  • Language: English
  • ASIN: B0026OR3JY
  • Text-to-Speech: Enabled
  • X-Ray:
  • Lending: Not Enabled
  • Amazon Best Sellers Rank: #462,763 Paid in Kindle Store (See Top 100 Paid in Kindle Store)
  •  Would you like to give feedback on images?

Customer Reviews

Most Helpful Customer Reviews
33 of 34 people found the following review helpful
5.0 out of 5 stars Complete December 24, 2000
It's nice to have some material on JMS - it is very hot so plenty of employers are looking for those who know it. I especially like the way they have a chapter on the new message-driven beans in EJB 2.0. In general, this book is pretty complete covering both P2P and publish-subscribe. They give a decent amount of examples and cover the theory involved. JMS is not rocket science, it is pretty simple so if you've had alot of experience with messaging systems this may be repetitive for you. You could probably save money by checking out the JMS spec. However, if you're new to messaging systems, this will provide a nice, complete intro.
Comment | 
Was this review helpful to you?
28 of 30 people found the following review helpful
5.0 out of 5 stars Hits the mark January 3, 2001
By A Customer
I found this book to be a very informative and accurate description of JMS. Having studied the JMS spec in great detail, I thought I knew everything there was to know about it. However, this book spells it out very clearly, puts it together in a way that is easily digestible. It explains the concepts clearly and continually builds on them with working examples as it goes. It provides information on subtleties like why and why not one would use the TopicRequestor object, and provides a very thorough discussion on guaranteed messaging, store-and-forward, and message acknowledgements.
It gives a good overview of the popular JMS vendors. In the preface it mentions that the technical reviewers for the book consisted in part of representatives from a number of JMS vendors. It is good to know that one of the co-authors of this book is from the SonicMQ team. Based on the level of detail described in the book, and the extensive list of names in the acknowledgements section, it is clear that David Chappell made good use of expert advice from the SonicMQ engineering team, and from the Sun team (Joe Fialli is the technical lead for Sun's JMS reference implementation). This book is not just a point of view from 2 guys who read a spec and regurgitated it. It is clear that it contains valuable and accurate information on a technology than from the engineers who built an implementation of it - from SonicMQ, Sun's JMS reference implementation, and other JMS vendors.
Comment | 
Was this review helpful to you?
18 of 20 people found the following review helpful
5.0 out of 5 stars Excellent, practical + good background January 11, 2001
This book hits two flies in one smash: it gives a good background of messaging and JMS, and it is a good tutorial about the JMS API with lots of clear examples.
The first chapter gives a good and complete description of the messaging paradigm. Chapter 2-6 is the actual API tutorial. Chapter 2 gives you a simple and complete example of a chat application, chapter 3-6 explain all the aspects of the JMS API. The explanation is very clear and well structured with good feedback to previous explanations and messaging concepts, the reader never gets lost in the explanations and examples. And it is always clear for the reader why things have to be done a certain way.
Chapter 6 "Transacted Messages" also gives you a very short description of the JTA (supported by some JMS providers) API for two-phase commit transactions. Actually too short, I could not find a good tutorial in print elsewhere on this topic.
Chapter 7 "Deployment Considerations" is a very practical chapter for architects and deals with performance, scalability, reliabity, security, multicasting versus hub and spoke architecture.
Chapter 8 "J2EE, EJB, and JMS" describes the place of JMS in the J2EE platform and also describes new MessageDrivenBean type in the EJB2.0 spec. This integration between EJB and JMS has not been described yet in other books about EJB.
Chapter 9 describes the products of a couple of JMS providers.
This is a very even, complete and well written book. Contrary to what one reviewer suggests, this is not a book about SonicMQ.
Comment | 
Was this review helpful to you?
17 of 20 people found the following review helpful
5.0 out of 5 stars Invaluable! January 4, 2001
By A Customer
If you are not born as a JMS expert ... If you hate reading dry specs ... If you need to get up to speed on JMS quickly ... If you want to know what to look/ask for when evaluating JMS ... If you learn best by playing with examples (anybody out there who doesn't?)... ... this is the book for you.
This book discusses JMS as it applies to real business applications and needs. The spec can't give you that. Invaluable if you ask me!
Comment | 
Was this review helpful to you?
7 of 7 people found the following review helpful
2.0 out of 5 stars A little better than Sun's JMS Tutorial June 5, 2002
So, about the book. I had hoped to find suggestions as to
how to optimize JMS throughput. Chapter 7, "Deployment Considerations" should have provided some help.
It asked more questions than it answered and offered no
specific solutions.
Overall, I got a little more out of the book than I did
reading [their] site and tutorial.
Comment | 
Was this review helpful to you?
7 of 7 people found the following review helpful
5.0 out of 5 stars Excellent reference and Practical JMS book March 27, 2001
I really liked this book and it was very helpful for me as a reference on my desk. I am using this a lot for implementing JMS in my applications.The information is presented much more clearly than the JMS specifications.
My only recommendation would be that some UML diagrams would have been helpful to add value to the book.
Comment | 
Was this review helpful to you?
18 of 22 people found the following review helpful
1.0 out of 5 stars A specification Digest May 9, 2001
For me the book had little value. I would have been interested if it had offered some insight and/or examples into ways to set up a distributed system ( jms servers on two systems ) using various protocols. The examples and configurations discussed were the sames as those you would find at javasoft; nothing beyond a star configuration. JNDI is also a very important aspect of the JMS solution which was only thinly covered.
There seems to be a whole series of these kind of books comming out of O'Reilly. Books that are similarly disappointing are the book on threads, beans and JDBC. Again each of these books fail to take the topic beyond the specification. O'Reilly does have some very fine books, especially the Nutshell books, but some just don't have value.
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
4.0 out of 5 stars The Java Message Service explained
I have just spent the last ten months of my life looking at the messaging features on Windows and Linux. Read more
Published 5 months ago by Robin T. Wernick
1.0 out of 5 stars Make sure its the same version as the print -- 2.0 or better
The print version is the second printing and is very helpful and almost up to date.

The Kindle edition, however, and even the "upgrade" from Oreilly should probably be... Read more
Published 13 months ago by Sedulous
5.0 out of 5 stars SOLID, ELEGANT, AND CONCISE!
This text does and incredible job of bringing together the technology of JMS without forgetting to reiterate the fundamentals of the Java language. Read more
Published 17 months ago by Amazon Customer
5.0 out of 5 stars The least bad book on Messaging
Java Messaging is confusing. Not because it is too complicated, but because it is never clearly explained. Usually there is a lot of marketing in books and not enough substance. Read more
Published 21 months ago by Dimitri K
4.0 out of 5 stars Good explanation for Integration of Spring and MQ Series
I am look at Integration of Spring JMS and MQ Series. Author clearly explained Spring JMS , how the context factory and security credentials, connection factory, destination... Read more
Published on August 8, 2010 by MSNKR
3.0 out of 5 stars Everything About the Standard, Little About its Implementations
Somewhat shallow with a dense writing style and scattered redundancy.

You only find a description of the standard itself and how you might want to use it. Read more
Published on March 3, 2010 by ws__
4.0 out of 5 stars Useful for learning JMS client programming, but NOT ActiveMQ...
If you already have a JMS server operational, and someone who understands how to configure that JMS server, then this is a useful book. Read more
Published on November 25, 2009 by Hawkins in Issaquah
5.0 out of 5 stars Complete JMS Reference including Spring Framework
If you wanted to start learning JMS from scratch and be able to run a small, but real-life application, then this is the book for you. Read more
Published on October 14, 2009 by Suhas Valanjoo
4.0 out of 5 stars Solid update to a standard reference
I learned JMS originally from the first edition of this book, so was interested to see how the material had changed. Read more
Published on July 10, 2009 by Jonathan Ross
5.0 out of 5 stars Excellent Introduction... it will get you started
If you are looking into JMS for use at work or you are just curious, this straight-to-the-point and easy read will start you on your way. Read more
Published on May 18, 2007 by J. Brutto
Search Customer Reviews
Search these reviews only

More About the Authors

Discover books, learn about writers, read author blogs, and more.

What Other Items Do Customers Buy After Viewing This Item?


There are no discussions about this product yet.
Be the first to discuss this product with the community.
Start a new discussion
First post:
Prompts for sign-in

Look for Similar Items by Category