Java Message Service API Tutorial and Reference: Messaging for the J2EE Platform (Paperback)

Mark Hapner, Rich Burridge, Rahul Sharma, Joseph Fialli, Kim Haase

  • 出版商: Addison Wesley
  • 出版日期: 2000-12-06
  • 定價: $1,650
  • 售價: 2.4$399
  • 語言: 英文
  • 頁數: 544
  • 裝訂: Paperback
  • ISBN: 0201784726
  • ISBN-13: 9780201784725




Java™ Message Service API Tutorial and Reference provides a clear and complete introduction to the Java™ Message Service (JMS) API. This book illustrates how to use the JMS API to build applications that create, send, receive, and read messages. Beginning with comprehensive descriptions of fundamental JMS concepts and building blocks, the coverage extends to all aspects of running and creating JMS applications. Each topic area is supported by relevant and well-crafted JMS program examples that demonstrate how to put the technology to work.

The JMS API is an integral part of the Java 2 Platform, Enterprise Edition (J2EE™ platform). Developed by Sun Microsystems in close cooperation with enterprise messaging partners, JMS works together with other technologies to provide reliable, asynchronous communication between components in a distributed computing environment. It delivers a new, powerful tool for enterprise messaging--the cornerstone of today's enterprise applications.

You will find in-depth coverage on how to:

  • Create and run JMS client programs
  • Use the JMS API within the J2EE platform
  • Consume messages asynchronously with a message-driven bean
  • Produce messages from an application client and from a session bean
  • Access an entity bean from a message-driven bean
  • Create applications for the J2EE platform that use the JMS API to
    Consume messages
    Produce messages
    Access an entity bean

From BytesMessage to TransactionRolledBackException, a useful alphabetical reference provides complete information on all facets of the JMS API.

Additionally, the tutorial example programs are downloadable from the Sun Web site, so that you can adapt them to implementations of the JMS API and the J2EE platform.

Written by an expert team, the book offers an unparalleled technical understanding of JMS and its integration into the J2EE platform. Its thorough and practical coverage of JMS makes it easy for developers working in a distributed Java technology environment, and those familiar with the J2EE platform, to efficiently integrate the JMS API.

Table of Contents






1. Overview.
2. Basic JMS API Concepts.
3. The JMS API Programming Model.
4. Writing Simple JMS Client Applications.
5. Creating Robust JMS Applications.
6. Using the JMS API in a J2EE Application.
7. A Simple J2EE Application that Uses the JMS API.
8. A J2EE Application that Uses the JMS API with a Session Bean.
9. A J2EE Application that Uses the JMS API with an Entity Bean.
10. An Application Example that Uses Two J2EE Servers.


11. BytesMessage.
12. Connection.
13. ConnectionFactory.
14. ConnectionMetaData.
15. DeliveryMode.
16. Destination.
17. ExceptionListener.
18. IllegalStateException.
19. InvalidClientIDException.
20. InvalidDestinationException.
21. InvalidSelectorException.
22. JMSException.
23. JMSSecurityException.
24. MapMessage.
25. Message.
26. MessageConsumer.
27. MessageEOFException.
28. MessageFormatException.
29. MessageListener.
30. MessageNotReadableException.
31. MessageNotWriteableException.
32. MessageProducer.
33. ObjectMessage.
34. Queue.
35. QueueBrowser.
36. QueueConnection.
37. QueueConnectionFactory.
38. QueueReceiver.
39. QueueRequestor.
40. QueueSender.
41. QueueSession.
42. ResourceAllocationException.
43. Session.
44. StreamMessage.
45. TemporaryQueue.
46. TemporaryTopic.
48. Topic.
49. TopicConnection.
50. TopicConnectionFactory.
51. TopicPublisher.
52. TopicRequestor.
53. TopicSession.
54. TopicSubscriber.
55. TransactionInProgressException.
56. TransactionRolledBackException.
Appendix A: JMS Client Examples.