As the MyFaces project is largely about view technologies, we have focussed on the view layer until now. For the sake of simplicity, we did not care about persisting our data in a database or something similar. However, in a real-world application, we do need a persistence solution most of the time. That’s why we’ll have a quick look at integrating our JSF web application with a backend solution. We will only look at some basics here, as lots of books could be written about backend technologies. (And luckily, many good books on the topic are already available.) This chapter focuses on using Java persistence, as it is included within the Java EE standard without the use of any additional libraries.
In this chapter we will learn about the following topics:
Basic knowledge about the Model-View-Controller design pattern
Basic knowledge about Enterprise JavaBeans (3.0)
Basic knowledge about the Java Persistence API (1.0)
Using Enterprise JavaBeans (EJB) facades...