O'Reilly logo

Java EE 6 Development with NetBeans 7 by David R. Heffelfinger

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Processing JMS messages with message driven Beans

In order to create a message driven bean, we need to right-click on our EJB project and select File | New, then select the Enterprise JavaBeans category and the Message-Driven Bean file type.

Processing JMS messages with message driven Beans

In the resulting dialog window, we need to enter a name, package, and select a JMS destination for the message driven bean.

Processing JMS messages with message driven Beans

Once we have entered all the required information, our message driven bean is created in the specified package.

package com.ensode.mdb; import javax.ejb.ActivationConfigProperty; import javax.ejb.MessageDriven; ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required