Chapter 4. Writing Simple JMS Client Applications

This chapter shows how to create and to run simple JMS client programs. A J2EE application client commonly accesses J2EE components installed in a server based on J2EE technology (“J2EE server”). The clients in this chapter, however, are simple standalone programs that run outside the server as class files. The clients demonstrate the basic tasks that a JMS application must perform:

  • Creating a connection and a session

  • Creating message producers and consumers

  • Sending and receiving messages

In a J2EE application, some of these tasks are performed, in whole or in part, by the EJB container. If you learn about these tasks, you will have a good basis for understanding how a JMS application works on the ...

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.