Message-driven beans (MDBs) make consuming JMS messages a lot easier. With just a couple of annotations and implementing the
onMessage method, you can make any Java object a consumer of the JMS messages. In this section, we will implement an MDB to consume messages from the
Course queue. To implement MDB, we need to create an EJB project. Select File | New | EJB Project from the main menu.
Enter Project name as
CourseManagementEJB. Click Next. Accept the default values on the subsequent pages, and click Finish on the last page.
Right-click on the project, and select the ...