Sun GlassFish Mobility Platform 1.1 Developer's Guide for Enterprise Connectors

ProcedureTo Create a Maven Project for a JAX-RS Enterprise Connector

  1. In NetBeans IDE, click the Projects tab.

  2. Choose File->New Project.

  3. In the New Project dialog, select Maven from the Categories tree.

  4. Select Maven Project from the Projects list, then click Next.

  5. On the Maven Archetype page, expand Archetypes from the remote Maven Repositories node.

  6. From the list, select MEP Connector Archetype (JAX-RS), then click Next.

  7. On the Name and Location page, modify any default values you wish to, then click Finish.

    The new project appears in the Projects tab. The default project name is mavenproject1 (war).

  8. Under mavenproject1, expand the Source Packages node.

  9. Expand the com.mycompany.mavenproject1 node.

    Two class files appear, named MyBusinessObjectsResource.java and MyBusinessObjectResource.java. These classes correspond to the container-item pattern familiar to JAX-RS programmers.

Next Steps

To create the Enterprise Connector, you add code to these files and define your business object.