17.3. Understanding contextual components

In the previous sections, you've turned the basic JSF and EJB 3.0 web application into a stateful, conversational Seam application. Doing so resulted in less code and improved the application's functionality. You shouldn't stop there—Seam has more to offer.

You can wire Seam components together in a contextual fashion. This is a powerful concept that can have a deep impact on how you design a stateful application. In our experience, it's one of the major reasons why Seam applications have few lines of compact code. To demonstrate, we discuss how you can create new application functionality.

Almost all web application have a login/logout feature and the concept of a logged-in user. We assume that a user ...

Get Java Persistence with Hibernate 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.