
Here you can find information about setting up a Java Message Service (JMS) environment and developing message-driven beans (MDBs) on the SAP NetWeaver Application Server . JMS is a messaging standard designed to eliminate many of the disadvantages of Message Oriented Middleware products faced over the past years. JMS allows two different styles of messaging ( messaging domains ):
Publish/Subscribe - where many message producers talk to many message consumers.
Point-To-Point - where multiple producers send messages to a queue, but each message is delivered only to one consumer. The messages are delivered according to the First-In-First-Out (FIFO) strategy.
Here is an overview of the JMS API programming model:

By the end of this tutorial you should be able to create and use MDBs on the SAP NetWeaver Application Server, using the SAP's JMS Provider. You have to set up the environment for running applications and to define a queue or topic in your JMS Provider. You do this using the SAP NetWeaver Developer Studio.
System, Installed Applications, and Authorizations
SAP NetWeaver Developer Studio is installed.
AS Java is installed.
JDK 5.0 of the SUN Microsystems is installed.
You have administrative privileges to manage the configuration of the applications on the AS Java.
Knowledge
Java programming language
Basic understanding of the JMS programming model.
Basic understanding of the MDB and EJB programming concepts.
You have access to the AS Java.
The procedures in this tutorial assume that you use the workbench default settings (Auto build, and so on).
The Message Driven Bean
In this tutorial, you create and implement an MDB, which is a consumer of a message sent by a client residing on the server. There is also an example SimpleSenderClient class, which is the client sending a message to an MDB.
Creating the MDB Application
The process of developing and deploying an MDB application consists of the following steps:
Create an EJB project.
Develop the enterprise bean (EJB).
Assemble the Enterprise Application (EAR file).
You can choose the type of the sender to be either an internal Java EE client (another EJB, servlet or JSP), or a remote Java client.
These are the steps you have to take:
Create an EJB project and an Enterprise Archive (EAR).
More information: Creating an EJB Project and an EAR Project
Set up the message driven bean in this project.
More information: Developing the Message-Driven Bean
Configure the JMS resources deployment descriptor, where you set up the connection factory and the destination. Implement the configuration XML Schema file.
More information: Configuring the JMS Resources
Deploy the EAR, which results in the automatic deployment of all JMS resources defined in jms-resources.xml file.
More information: Deploying the EAR
Create the JMS client that sends messages. You can choose the type of the sender to be either an internal (that is residing on the server) Java EE client (another EJB, Servlet, or JSP) or a remote Java client.
More information: Sender JMS Client Example
Start the example.
More information: Running the Example