Summary
In this chapter, we provided an introduction to CDI. We covered how JSF pages can access CDI-named beans as if they were JSF Managed Beans. We also covered how CDI makes it easy to inject dependencies into our code via the @Inject
annotation. Additionally, we explained how we can add another library of the JBoss ecosystem (RichFaces) uncovering just one aspect of its potentiality.
Until now, we have worked with in-memory data, so it's time to introduce storage for our CDI applications using the Java Persistence API, which is the theme of the next chapter.