Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "The ApplicationStateBean uses an enumeration variable called state to store the state of the application."

A block of code is set as follows:

@Stateful
@DeclareRoles("manager")
@RolesAllowed("manager")
public class VoucherManager {
...
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

public class VoucherManager { ... @EJB VoucherVerification voucherVerification; ... @RolesAllowed("employee") public void submit() { System.out.println("Voucher ...

Get EJB 3.1 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.