WebSphere Adapter for FTP

Testing tutorial 7: Inbound with simple pass through

In this tutorial, you will generate an inbound event that is processed with simple passthrough. You will also see how to confirm the results of the operation.

  1. In the Business Integration perspective of WebSphere® Integration Developer, right-click the FTPinboundModule module and click Open With > Assembly Editor.
  2. Select the Properties tab and click Binding > End-point configuration.
  3. Select Connection and expand Activation Spec Properties.
  4. Confirm that the Event Content Type contains no value.
    This image is described in the surrounding text.
    Connection configuration window
  5. Configure file splitting based on size:
    1. Specify Splitting Function Class Name as com.ibm.j2ca.utils.filesplit.SplitBySize.
    2. Specify Split Criteria as 0.
  6. Click File > Save.
  7. Right-click the FTPInboundModule project from the navigation panel and select Test > Attach. This attaches the integration test client to the EIS export.
  8. Create a *.txt file in the eventdirectory, containing customer data, to trigger an inbound event. For example:
    <?xml version="1.0" encoding="UTF-8"?>
    <customer:Customer xsi:type="customer:Customer" xmlns:xsi="http://www.w3.org
    /2001/XMLSchema-instance" xmlns:customer="http://www.ibm.com/xmlns/prod/
    websphere/j2ca/ftp/customer">
      <CustomerName>Michele</CustomerName>
      <Address>Da Vinci Ave.</Address>
      <City>NewYork</City>
      <State>NY</State>
    </customer:Customer>
    ####
    <?xml version="1.0" encoding="UTF-8"?>
    <customer:Customer xsi:type="customer:Customer" xmlns:xsi="http://www.w3.org
    /2001/XMLSchema-instance"xmlns:customer="http://www.ibm.com/xmlns/prod/
    websphere/j2ca/ftp/customer">
      <CustomerName>John</CustomerName>
      <Address>Grade A Colony</Address>
      <City>California</City>
      <State>CA</State>
    </customer:Customer>
    ####
  9. Click Continue to run the service and test the inbound module.
  10. In the Select Deployment Location window, select WebSphere Process Server v6.0 and click Finish.
  11. Verify in the log and trace files that a single business object is posted to end point. Log and trace files are located in the install_root/profiles/profile_name/logs/server_name folder. Since Split Criteria is set to 0 and Splitting Function Class Name is set to ibm.j2ca.utils.filesplit.SplitBySize, the event file content is treated as single business object.

Terms of use |

Last updated: Mon 30 Oct 2006 03:48:53

(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)