O'Reilly logo

Java EE Development with Eclipse - Second Edition by Ram Kulkarni

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

Creating a JMS application using JSF and managed beans

In this section, we will see how to create a JMS application by using JSF and managed beans. With managed beans, we can reduce the code that you write to using JMS APIs, because we can use annotations to inject objects such as the JMS connection factory, queue, and topic. Once we obtain reference to these objects, steps to send or receive data are the same as those discussed in the previous section. Therefore, our examples in this section do not list the entire code. For the complete source code, download the source code for this chapter.

To prepare our project for using JSF, we need to create web.xml and add the JSF Servlet definition and mapping in it. Right-click on the project and select ...

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