Creating JEE project for a JMS application

We will see examples of using JMS APIs in three different ways.

In the first example, we will create a simple addCourse.jsp page, one JSP bean, and one Service class that actually performs JMS tasks.

In the second example, we will use JSF and managed beans. We will use JMS APIs in the managed beans. We will also see how to use JMS annotations in JSF managed beans.

In the last example, we will use MDBs to consume JMS messages.

Let's start with the first example, which uses JSP, bean, and JMS APIs. Create a web project by selecting File | New | Dynamic Web Project or File | New | Other and then WebDynamic Web Project:

Figure 10.4: Create a dynamic web project for a JMS app

Enter the Project name ...

Get Java EE 8 Development with Eclipse 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.