Sun POJO Service Engine User's Guide

Creating Composite Applications for POJO Service Engine Projects

The way you create a Composite Application varies depending on whether you created a POJO service provider or consumer, and whether you created it with or without binding. The following topics describe the different methods.

Creating a Composite Application for a POJO Service Provider (Without Binding)

When you create a POJO service provider without any binding, you can apply the binding to the service assembly in the Composite Application.

ProcedureTo Create a Composite Application for a POJO Service Provider (Without 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 Application 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.

  8. From the CASA Editor Palette, drag the appropriate WSDL Binding to the WSDL Ports section of the CASA Editor.

  9. Drag a connection from the WSDL port endpoint to the POJO service endpoint.

    Figure shows a completed Composite Application
for a POJO server provider.
  10. Save the changes to the Composite Application.

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


Creating a Composite Application for a POJO Service Provider (With Binding)

When you create a Composite Application for a POJO service provider with binding, the CASA Editor automates most of the work for you.

ProcedureTo Create a Composite Application for a POJO Service Provider (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 and JBI Module both appear in the CASA Editor with the endpoints connected.

    Figure shows a completed Composite Application
for a POJO service provider with binding.
  8. Save the changes to the Composite Application.

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


Creating a Composite Application for a POJO Service Consumer (Without Binding)

When you create a POJO service consumer without any binding, you can apply the binding to the service assembly in the Composite Application.

ProcedureTo Create a Composite Application for a POJO Service Consumer (Without 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.

    If you configured the POJO consumer from an existing WSDL document, 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 you did not configure the consumer from an existing WSDL document, drag the appropriate WSDL binding from the Palette to the WSDL Ports section of the CASA Editor and connect it to the consumer endpoint as shown above.

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

  10. Save the changes to the Composite Application.

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


Creating a Composite Application for a POJO Service Consumer (With Binding)

When you create a Composite Application for a POJO service consumer with binding, building the Composite Application automates most of the work for you.

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.