O'Reilly logo

Hands-On Enterprise Java Microservices with Eclipse MicroProfile by Scott Stark, Antoine Sabot-Durand, Pavol Loffay, Jeff Mesnil, Heiko W. Rupp, Cesar Saavedra

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

MicroProfile Fault Tolerance in action

As we just discussed, the Fault Tolerance specification provides a set of annotations that you have to apply on a class or method to enforce Fault Tolerance policies. That being said, you have to keep in mind that these annotations are interceptors binding and hence are only usable on CDI beans. So, be careful to define your class as CDI beans before applying Fault Tolerance annotations on them or their methods.

In the following sections, you'll find usage examples for each Fault Tolerance annotation.

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