Using the FTP Binding Component in a Project

Creating a Composite Application

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

ProcedureTo Create a Composite Application

  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, SendInventoryCompAppl

  6. Click Finish.

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

    Composite Application XML

    This action displays a message in the Output console.


    XML validation finished
  7. Right-click either the Composite Application Project node or expand the node. Select JBI Modules.

    For example, SendInventoryCompAppl

  8. Select Add JBI Module.

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

    For example, SendInventory

    The Project JAR Files is build/SEDeployment.jar.

    Add JAR File

    The SendInvetory.jar is added to the project.

  10. Click Save All.

    JAR File Involved
  11. Right-click the Composite Application project node. Select Clean and Build.

    For example, SendInventoryCompAppl

    Clean and Build

    This action displays a message in the Output console:


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

Deploying the Composite Application

File Binding Component is used to pick messages from a local directory.

FTP Binding Component is used to transport messages between the consumer and the provider using FTP.

ProcedureTo Deploy the Composite Application

  1. Create a folder and save the file in the local directory.

    For example, c:/temp and inventory%d.xml

    Here, foldername is c:/temp and the filename is inventory%d.xml.

    Inventory Folder
  2. Create a folder on the FTP Server.

    For example, book_updates

    The folder is empty before deployment.

    book updates
  3. Select the project node in the Projects window.

    For example, SendInventoryCompAppl

  4. Right-click and choose Deploy.

    Deployment successful

    After deployment of the project, the following message is displayed in the Output window:


    BUILD SUCCESSFUL (total time: 18 seconds)
  5. Check for the folder in the local directory.

    Two folders are created under SendInventoryCompAppl_FileInboundService_fileTrig-45609436–4:

    1. archive

    2. filebc-in processing

      Input File
  6. Check the folders on the FTP Server.

    After deployment, inbox and instage folders are created.

    Folders created
  7. Double-click the folder /inbox to check the output.

    The message routing starts with the consumer invoking a service (INVOKE in BPEL script). On the other side of the NMR, FTP BC OutboundProcessor accepts the request message, de-normalizes the message and labels the message body (which is the payload to a FTP file) with name as req.

    req Name conventions