O'Reilly logo

Seam Framework: Experience the Evolution of Java™ EE, Second Edition by Thomas Heute, Jacob Orshalick, Michael Juntao Yuan

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

23 Integrating Business Rules in Web Applications

In Chapter 22, we saw how to use rules to describe and enforce security policies in your web application. The security rules in Seam are powered by the Drools framework. Using the same underlying Drools engine, we can easily add generic business rules in Seam applications as well.

The easiest way to use rules in Seam is probably to piggyback on top of the security rules infrastructure. We can just put business rules in app.ear/META-INF/security.drl and use #{s:hasPermission(...)} to check whether to present certain navigation or business function choices to the user.

In this chapter, we will first continue working on the Rules Booking example application, which uses business rules ...

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