Chapter 21. Java Message Service Examples

This chapter provides examples that show how to use the JMS API in various kinds of Java EE applications. It covers the following topics:

• “Writing Simple JMS Applications” on page 378

• “Writing Robust JMS Applications” on page 406

• “An Application That Uses the JMS API with a Session Bean” on page 416

• “An Application That Uses the JMS API with an Entity” on page 421

• “An Application Example That Consumes Messages from a Remote Server” on page 429

• “An Application Example That Deploys a Message-Driven Bean on Two Servers” on page 436

The examples are in the tut-install/examples/jms/ directory.

The steps to build and run each example are as follows:

1. Use NetBeans IDE or Ant to compile and package ...

Get The Java EE 6 Tutorial: Advanced Topics, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.