Day 14. Developing Message-Driven Beans

Today, you'll learn how to develop applications using asynchronous messaging. You'll work on a complete example of developing a message-driven enterprise bean (MDB).

In our sample University Registration System, a student selects items from the course catalog, places them in an enrollment cart, and, when she's ready, places an order for the cart contents. After the order is placed, we must verify the student's billing information, the classroom's capacity, and so on. We would like to enable the student to continue browsing the Web site and not require her to wait for the background processing to complete. This asynchronous processing can be best modeled using a message-driven bean. In the sample application, ...

Get Sams Teach Yourself EJB in 21 Days 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.