JMS/JBoss - The Core Developers Guide

By Remigio Chirino

What's in this Guide?

This guide introduces a java programmer to the JMS API. The guide covers several simple JMS applications that can be used as a basis for bigger JMS applications. It then dives into more advanced topics such as how to leverage the J2EE container integration, and exploiting JBossMQ specific features.

Table of Contents

Why use JMS
So what's all the hype about? This chapter helps you understand why so many developers are excited to use the JMS API.

JMS Basics
Before you can jump to developing you first JMS application, you should first review the basics, or some might say the architecture. This chapter provides a high level overview of what JMS can do for your applications.

Developing JMS Applications
Now that you understand the basics of JMS, you can start looking a some JMS application code. Many simple JMS examples are provided so that you can start creating your own JMS applications quickly.

Container Integration
The JMS API has recently become an integral part of the J2EE architecture. JMS messages can be used to drive processing in a J2EE container via Message Driven Beans (MDB). Furthermore, all the Enterprise Beans in a J2EE application can send messages to JMS destinations by accessing the JMS API via a JCA resource adapter. Both, Message Driven Beans and the JMS JCA resource adapter will be covered in this chapter.

Using JBossMQ Features
You should always try your hardest to stick to the JMS spec so that your application can remain JMS provider independent. However, you sometimes don't need to say JMS provider independent or you just don't have another choice but to use a JMS provider specific feature. This chapter will review some of APIs that JBossMQ provides that can be used to do a few things that are not in the JMS spec.