Sun POJO Service Engine User's Guide

ProcedureTo Create a POJO Service Provider in a Java Application

  1. Open the Java file to which you want to add the POJO service provider.

  2. If the Palette is not visible, click Window in the NetBeans toolbar and then click Palette.

    The Palette appears to the right of the Java Editor.

  3. Drag and drop a POJO Provider from the Palette to the location in the Java file where you want to insert to POJO service provider.

    The Name and Location Wizard appears.

    Figure shows the POJO Service Provider Wizard
as accessed from a Java class.
  4. Enter the method name, input type, and return type.

    For more information about these fields, see Table 1.

  5. To configure advanced properties, click Advanced.

    The Advanced properties editor appears.

  6. Modify any of the properties described in Table 2.

  7. Click Finish.

    Any library JAR files needed to compile the project are added to the Libraries node of the project. The @Provider, @Operation, and @Resource annotations are added at the insertion point.

    Figure shows the code framework generated for
the POJO service provider.
Next Steps

For instructions on creating a composite application for this project, see Creating a Composite Application for a POJO Service Provider (Without Binding).