|
Home TOC Index |
|
Search
Feedback |
A Message-Driven Bean Example
Since message-driven beans are based on the Java
Message Service (JMS) technology, to understand the example in this chapter you should already be familiar with basic JMS concepts such as queues and messages. The best place to learn about these concepts is the Java Message Service Tutorial:
http://java.sun.com/products/jms/tutorial/index.htmlThis chapter describes the source code of a simple message-driven bean example. Before proceeding, you should read the basic conceptual information in the section What Is a Message-Driven Bean?.
In This Chapter
- Example Application Overview
- The J2EE
Application Client
- The Message-Driven Bean Class
- The onMessage Method
- The ejbCreate and ejbRemove Methods
- Running the SimpleMessageEJB Example
- Starting the J2EE
Server
- Creating the Queue
- Deploying the Application
- Running the Client
- Deploytool Tips for Message-Driven Beans
- Specifying the Bean's Type and Transaction Management
- Setting the Message-Driven Bean's Characteristics
- Deploytool Tips for JMS Clients
- Setting the Resource References
- Setting the Resource Environment References
- Specifying the JNDI Names
|
Home TOC Index |
|
Search
Feedback |