Using as-you-type validation

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

  1. 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.

  2. Select one of the quick fixes that the validator suggests.

    The following screen capture illustrates the as-you-type validation tool:

    as you type validation message
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tvalidateejb3.html