The Java™ EE tools
feature enhanced EJB 3.x as-you-type validation. While you modify the annotations for your EJB,
as-you-type validation runs to provide you feedback on any problems that it detects. These problems
become errors when you save them.
Before you begin
In the Java EE perspective, open your Java class in the Java editor.
Procedure
- Type your code.
While you modify the EJB 3.x annotations in your Java
class, as-you-type validation simultaneously runs and tracks any errors that you might have in your
code. The validator flags any statement or value that has syntactic or usage problems by underlining
it in red.
- Select one of the quick fixes that the validator suggests.
The following screen capture illustrates the as-you-type validation tool: