Using the Database Binding Component

Creating the Composite Application Project

Add the JBI module to the BPEL Module project before deploying the Composite Application. Deploying the project makes the service assembly available to the application server, thus allowing its service units to run.

ProcedureTo Create the Composite Application Project

  1. Choose File —> New Project from the main menu.

    This opens the New Project wizard.

  2. Select the SOA node from the Categories list.

  3. Select the Composite Application node from the Projects list.

  4. Click Next.

    Composite Application
  5. Type the Project Name in the Project Name field.

    For example, DBBCSampleCompositeApp

    Enter Project Name
  6. Click Finish.

    The Projects window now contains a project node for a Composite Application project called DBBCSampleCompositeApp.

    Composite Application Node
  7. Right-click either the Composite Application Project node or expand the node and select JBI Modules.

    For example, DBBCSampleCompositeApp

  8. Select Add JBI Module.

    Add JBI Module
  9. Select the Project. Click Add Project JAR Files.

    For example, BpelModuleSample

    The Project JAR Files is build/SEDeployment.jar.

    Add Project JAR Files

    The BpelModuleSample.jar file is added into the project.

    JAR File Added
  10. Click Save All.

    JBI Component

    A detailed illustration is as shown on the deployed JBI Components.

    1. Expand IDE, open the Services window, expand the GlassFish V2 node, and expand the JBI node.

    2. Right-click sun-database-binding and click Start.


      Note –

      If you do not see the JBI node, you need to start the Application Server by choosing Start from the pop-up menu of the GlassFish V2 node.


    JBI Components
  11. Right-click the Composite Application project node and select Clean and Build.

    For example, DBBCSampleCompositeApp

    Clean and Build

    The CASA Editor displays the build of DBBCSampleCompositeApp.

    Build Successful

    A message is displayed in the Output window:


    BUILD SUCCESSFUL (total time: 2 seconds)
  12. Click Save All.