Sun POJO Service Engine User's Guide

ProcedureTo Create a Composite Application for a POJO Service Consumer (With Binding)

  1. Right-click in the NetBeans Projects window, and then select New Project.

    The New Project Wizard appears.

  2. Under Categories, select SOA; under Projects, select Composite Application.

    Figure shows the New Project Wizard.
  3. Click Next.

    The Name and Location window appears.

  4. Enter a unique name for the project. You can also modify the location of the project files.

    Figure shows the Name and Location window of
the New Composite Application Project Wizard.
  5. Click Finish.

    The new project appears in the projects list and the Composite Application appears in the CASA Editor.

  6. Drag the POJO Service Engine project to the JBI Module section of the CASA Editor.

  7. Click Build.

    The WSDL port for the consumer appears and is connected to the POJO application.

    Figure shows the Composite Application with consumer
port only.

    If you added the consumer to a provider that was created with binding, the WSDL port for the provider also appears and is connected to the POJO application.

    Figure shows a complete Composite Application
with provider and consumer ports.
  8. If the provider was not created with binding, drag the appropriate WSDL binding from the Palette to the WSDL Ports section of the CASA Editor and connect it to the provider endpoint as shown above.

  9. Save the changes to the Composite Application.

  10. To deploy the application, do the following:

    1. Make sure the GlassFish server is running.

    2. In the Projects window, right-click the Composite Application project and then select Deploy.


      Note –

      If the POJO Service Engine is not started, deploying the Composite Application will automatically start it for you.