JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS POJO Service Engine User's Guide     Java CAPS Documentation
search filter icon
search icon

Document Information

Using the POJO Service Engine

POJO Service Engine Overview

Providing and Consuming JBI Services

Providing a JBI Service

Operation Parameter Types

Context

Consuming a JBI Service

Getting the Consumer Instance Dynamically

Consuming Services Asynchronously

Using Multiple Threads

Creating POJO Service Engine Projects

Creating a POJO Service Provider (Without Binding)

To Create a POJO Service Provider (Without Binding)

Creating a POJO Service Provider (With Binding)

To Create a POJO Service Provider (With Binding)

Creating a POJO Service Provider in an Existing Java Application

To Create a POJO Service Provider in a Java Application

Creating a POJO Service Consumer (Without Binding)

To Create a POJO Service Consumer (Without Binding)

Creating a POJO Service Consumer (With Binding)

To Create a POJO Service Consumer (With Binding)

POJO Configuration Properties

POJO Service Provider Properties

POJO Service Properties for Binding

POJO Service Consumer Properties

Creating Composite Applications for POJO Service Engine Projects

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

To Create a Composite Application for a POJO Service Provider (Without Binding)

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

To Create a Composite Application for a POJO Service Provider (With Binding)

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

To Create a Composite Application for a POJO Service Consumer (Without Binding)

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

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

Using POJO Services With BPEL

Invoking POJO Services from a Business Process

To Invoke a POJO Service from a Business Process

To Create the Composite Application

Calling a Business Process From a POJO Service

To Call a Business Process From a POJO Service

To Create the Composite Application

Configuring Runtime Properties for the POJO Service Engine

To Configure POJO SE Runtime Properties

POJO Service Engine Runtime Property Descriptions

POJO Service Engine API Annotation and Classes

POJO Service Engine API Annotations

POJO Service Engine Non-Annotated Classes

JBI API Classes Relevant to the POJO Service Engine

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.

To 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.
    image: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.
    image: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.
    image: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.

To 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.
    image: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.
    image: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.


    image: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.

To 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.
    image: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.
    image: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.


    image: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.


    image: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.

To 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.
    image: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.
    image: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.


    image: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.


    image: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.